May 2019
Intermediate to advanced
542 pages
13h 37m
English
An HTML document is composed of text content interspersed with tags to indicate non-plain text features. A tag is simply a word enclosed in angle brackets, as follows:
<sometag>This is some content</sometag>
Notice the </sometag> code at the end of the preceding example. This is called a closing tag, and it's simply like the opening tag but with a forward slash (/) before the tag name. Closing tags are generally only used for tags that enclose (or have the ability to enclose) text content.
Consider the following example:
Text can be <b>bold<b> <br>Text can be <em>emphasized</em> <br>Text can be <u>underlined</u> <hr>
The b, em, and u tags require a closing tag because they enclose a portion of the content and indicate a change ...
Read now
Unlock full access