What are attributes in HTML?

Answer:

Attributes are additional settings for tags to tell the tag what you want it to. Lots of tags can have several possible options as to what they can do, and the attributes tell it what it wants to do. The Body tag has attributes to do things like set the colour of the background of the body of the page. The font tag has attributes to tell it what colour the font should be, the size of the font and which particular font to use. If you are doing a line, you need to tell how wide it is and how thick it is, and also its colour. Colours being set is a common attribute in many fonts.

First answer by Flukey. Last edit by Flukey. Contributor trust: 714 [recommend contributor recommended]. Question popularity: 1 [recommend question].