HTML Encyclopaedia

Tags, Attributes and Values

Any HTML document consists of text to be displayed by the browser mixed in with mark up information which controls how the text is displayed. The mark up information consists of tags. A tag consists of a type indicating word and various optional attributes which usually have associated values. Here's an example

<img src=me.gif align=right>
Here the tag type is img and it has two attributes src and align. The attributes have the values me.gif and right respectively.

It is not entirely clear from the HTML standard whether spaces are allowed between the initial < and the type identifier and between the attribute identifier, the = symbol and the value.