Appendix A: Extra details on HTML

This Appendix contains detailed information about features of HTML that does not directly fit into the tutorials at the point in time when the feature is introduced.
Text enclosed in [ ] is to be replaced with what it is supposed to be at the time of use.

i.e. A tag, generic definition is <[tag-name]>, but it would be used as, for the br tag, <br>

Tag attributes

An attribute is a setting on a HTML tag that alters the behaviour of the tag to meet the requirements of its user.
All attributes have a name. They are set using the syntax [name]="[value]" or [name]=[value] (for values of a number or one word). The attribute is placed inside the < > of the tag. If it has a closing tag, the attribute always goes in the opening tag.
An example is the id attribute. It gives an item in the webpage an identifier. The identifier is given to it by setting the id attribute on it (id="[identifier]"). For example (on header text):

<h1 id="my_header">Header 1</h1>

Any tag can have a attribute. Another attribute example is the href attribute on the <a> tag (this tag can also have an id as shown). No quotes are used in this example, although they can be used.

<a href="http://www.invincitech.com" id=my-positional-id>Link</a>

A tag can also have no attributes:

<h1>Header with no attributes</h1>

Even more detail on HTML

Look at the Mozilla Developer Network. See here for HTML. Full details on HTML tags can be found here.