|
HTML Elements
As we have already seen, HTML is made up of elements such
as <p> or <br>. HTML elements are surrdouned by
< and > characters, which is why if you want to use
these in text you must use code.
The first > signifies the start of a tag and the >
shows the end. HTML tags are not case sensative so <BR>
is the same as <br>. They usually come in pairs although
several are just one.
For example:
<u>This text would be underlined</u>
You have the opening tag <u> which starts the underlining,
the content which is the text saying "this text would
be underlined" and the closing tag </b>. It would
produce:
This text would be underlined
HTML tags should be layered inside each other, for example:
<p><u>This is correct</u></p>
Whereas:
<p><u>This is not correct</p></u>
Sometimes you do not have a closing tag you only have a single
tag such as is the case with horizontal lines:
<hr />
Would produce:
There is no need for a closing tag.
|