HTML and CSS Reference
In-Depth Information
CHAPTER 1
Fundamental Syntax and Semantics
Emily Lewis
1.0 Introduction
This chapter is designed to get you up and running with HTML5 basics. Covering the
fundamental recipes, from declaring the DOCTYPE and character set to dealing with
ambiguities of the new HTML5 semantics, it helps lay the groundwork for the rest of
the topic.
1.1 Specifying the DOCTYPE
Problem
You want to create an HTML5 page.
Solution
Specify the HTML5 DOCTYPE at the very beginning of your page:
<!DOCTYPE html>
<html>
<head>
<title>HTML5, for Fun &amp; Profit</title>
</head>
<body>
</body>
</html>
Note that the DOCTYPE is not case sensitive. Feel free to go CaMeL
cAsE with the characters.
 
Search WWH ::




Custom Search