The document discusses the basic syntax and structure of HTML documents. It explains that HTML documents begin with a DOCTYPE declaration and consist of elements, attributes, and comments. Elements contain the content and are delineated by start and end tags. Attributes provide additional information about elements and have a name and value. Comments are text enclosed by special comment tags that are not displayed in web browsers. The document provides examples of basic HTML code structure and common page elements like headings, forms, links and copyright notices.
2. The syntax
1. The DOCTYPE
2. Elements
3. Attributes
4. Comments
Public
3. The DOCTYPE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
? Required header
? Leftover from SGML
? Doesn¡¯t really serve any purpose
Public
10. <!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<!-- ... -->
</html>
Public
11. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Google</title>
</head>
<body>
<!-- Only code in <body> will be displayed on screen.
-->
</body>
</html>
Public