211k views
2 votes
Which attribute would allow you to style two or more versions of the same element? ​

Which attribute would allow you to style two or more versions of the same element-example-1
User Enocom
by
4.9k points

1 Answer

3 votes

Answer:

The answer is "class".

Step-by-step explanation:

The class attribute specifies for a particular element one or even more class names. The class attribute is being used often in a style sheet to indicate its class. It's indeed possible, nevertheless, it implements adjustments to Html pages in the particular category by either JavaScript. The class attribute enables to design of the very same component with several or more versions, and the wrong choice can be defined as follows:

  • The img tag is used to add an image to the Html page, that's why it is wrong.
  • The src is used to add an image to the Html page, that's why it is wrong.
  • The p tag is used to add txt in the Html page, that's why it is wrong.
User Akbar Ibrahim
by
5.1k points