What Does a HTML Document Look Like

Q

What Does a HTML Document Look Like?

✍: FYIcenter

A

A HTML document is a normal text file with predefined tags mixed with the normal contents of the document. Tags are enclosed in pairs of angle brackets: "<" and ">".

Below is how a simple HTML document will look like if you open it in a text editor:

<!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>

2007-03-03, 7835👍, 0💬