It looks like this.<HTML> <BODY> Hello World! </BODY> </HTML>
![]()
Tags come in two varieties: single tags (aka empty tags) and pairs of tags. The difference is that a single tag occurs on its own, while a pair of tags must have an open and closing part. The closing part is just like the opening except that it is prefixed by a slash.
Single tags are used for separators or for inserting a single item. They do not have a matching closing tag. For example, some common single tags are:
<P> marks the end of a paragraph. <BR> marks the end of a line.
(BR stands for line BReak.)
<HR> marks a Horizontal Rule.
(A line across the page.)
All the tags in the first example are pairs.
<BODY> marks the start of the main document.
</BODY> marks the end of the main document.
<EM> and </EM> for emphasis.
<B> and </B> for bold.
<I> and </I> for italics.
<H1> and </H1> for headings.
<B>This is <I>important</I> stuff</B> you need to know.
![]()
This is important stuff you need to know.
![]()
For example: all line breaks are treated as a space, so having your document formatted like this:
will look like this when viewed over the Web:This is one paragraph. It contains all sorts of information. We want to keep it separate from the other paragraph. This is another paragraph. It is <EM>totally</EM> unrelated to the first.
![]()
Not pretty is it? - So we use paragraph marks <P> to separate paragraphs of text. The above then becomes:
which looks like you would expect:This is one paragraph. It contains all sorts of information. We want to keep it separate from the other paragraph. <P> This is another paragraph. It is <EM>totally</EM> unrelated to the first.
![]()
This is another paragraph. It is totally unrelated to the first.
which comes out of the viewer looking like this:Fred Foonly <BR> <I>Aventura Ave 23<BR> Palo Alto, CA.</I>
![]()
You can put a horizontal rule or line break wherever you could put a paragraph break.
Thus endeth the story<HR><B>Credits</B><P> The evil jester was played by ....
![]()
The evil jester was played by ....