A very basic web page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>My first HTML document</TITLE>
</HEAD>
<BODY>
<P>Hello world!</P>
</BODY>
</HTML>
View page in web browser:http://serine.umdnj.edu/~golharam/5004/helloword.htmlView page in telnet session:
telnet serine.umdnj.edu 80 GET /~golharam/5004/helloworld.html HTTP/1.0^M^M
More advanced HTML document
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>My first HTML document</TITLE>
</HEAD>
<BODY>
<H1>HTML is easy to learn</H1>
<P>Welcome to the world of HTML. This is the first paragraph. While short, it is still a paragraph!</P>
<P>And this is the second paragraph.</P>
</BODY>
</HTML>
<Hx>Text of heading</Hx> where x=1 to 6.
Some more tags:Here is pre-formatted text that I do not want the browser to re-format. ACGT || | ACCT
Lists
Unordered Lists:
<ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul>Ordered Lists:
<ol> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol>Definition Lists:
<DL> <DT>WWW</DT> <DD>World Wide Web</DD> <DT>HTML</DT> <DD>HyperText Markup Language</DD> <DT>HTTP</DT> <DD>HyperText Transport Protocol</DD> </DL>
Symbols: