Key to Element Types: Empty and Non-Empty

Empty: An element that contains no data but, rather, is an instruction to the browser to perform some action, such as force a line break or display an image. Empty elements in XHTML are terminated with a trailing slash, as in <br />.

Non-empty: An element that contains data. All nonempty elements in XHTML must be closed, as in this example:

<p>This is a paragraph, it contains data and is therefore non-empty.</p>

Element: a

Description: Used for linking to external documents or intrapage references

Element Type: Inline, nonempty

Example:

<a href="http://www.pearson.com/">Go to the Pearson Web Site</a><a name="reference1">Go to Reference One</a>

Tips: There are no known tips for this element. You cannot ...

Get Spring Into HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.