From the doctype to new elements, HTML5 in many ways is a simplification as well as an addition to what can be done with HTML. Here’s an example HTML5 page.
<link rel="stylesheet" href="style.css">
<section>Content, which might include headings, paragraphs, article elements each with a header and footer if desired and other material such as figure and figcaption or form elements.</section>
<section>other sections if needed</section>
A few comments on what you see. The doctype is simplified (See The HTML5 doctype). The language declaration is simplified, the link to the stylesheet no longer needs a type attribute.
New elements have more semantic names, providing more meaning than the generic <div>. The <header> and <footer> elements can be part of the entire page, plus part of <section> or <article> elements. The <hgroup> element nested in a <header> can be used when more than one level heading is needed as a title. (See: Document outlines in HTML 5 and The new hgroup element) The <aside> element can contain secondary content similar to what is now placed in a secondary sidebar div.
3 thoughts on “An example of HTML5 markup”
Hi, im searching for an example of a comment list
Are you looking for an example of an unordered list or a definition list that has been styled to display comments? Not sure what your question means?
Great tutorial. thanks.