HTML and CSS Reference
In-Depth Information
The elements <h1> , <h2> , <h3> , <h4> , <h5> , and <h6> are used to mark up headings in your page.
The number in the element name represents the heading's importance, with 1 being the most important
and 6 being the least important.
<h1> - <h6>
<h1>Main Page Title</h1>
<p>Some text content...</p>
<p>Some more text content...</p>
The <head> element should contain a collection of metadata about the page, such as the page title,
references to stylesheets, and the page keywords and description.
<!DOCTYPE html>
<meta charset=”utf-8”>
<title>HTML5 Foundations</title>
<link rel=”stylesheet” href=”css/style.css”>
The <header> element is used to mark up the header of a document or section. The header typically
contains a heading element ( <h1> - <h6> ) and metadata about the section.
<h1>About HTML5 Foundations</h1>
<p>Posted on 20 August 2012</p>
The section content...
The <hgroup> element is used to group together two or more heading elements. When the HTML5
outlining algorithm examines the page hierarchy, only the heading element with the most importance
within the <hgroup> will be used.
<h1>Venture Deals</h1>
<h2>Be Smarter Than Your Lawyer and Venture Capitalist</h2>
The <html> element represents the root of a HTML document. Everything except the DOCTYPE de-
claration should be enclosed within the <html> element.
<!DOCTYPE html>
Search WWH ::

Custom Search