- <font color="#000000"> is the opening tag. Opening tags tell the browser where to begin formatting the content.
- </font> is the closing tag. Closing tags tell the browser where to quit formatting.
- font is the HTML element.
- An attribute is additional information regarding the HTML element.
- Color is the NAME of the ATTRIBUTE.
- "#000000" is the VALUE of the ATTRIBUTE.
- Everything between the opening and closing tag is modified the way the tag tells the browser to modify it.
Example 3.2: <img src="images/header.jpg" />
- This example does not have a separate closing tag. This tag closes itself by ending the tag with /> instead of >.
- The /> is not necessary, but it's good programming if you put it there.
- There are a few tags that require the tag to close itself. Most tags having an opening and closing tag as in example 3.1. Tags that can close themselves are: <br />, <img />
Example 3.3: <a href="page2.html">Click here</a>
- a = anchor
- href = hyper reference
- <a href=""> is the opening tag to link text.
- </a> closes the link.
- The text between those tags will be linked to the specified url.
