HTML5 new elements for better structure
New Doctype:
1.
element: a
straddles an article, which is intended to be an independently
distributable document, like an article in a magazine.Here are this
element’s attributes:
2.
New Doctype:
1.
- . accesskey
- . class
- . contenteditable
- . contextmenu
- . dir
- . draggable
- . hidden
- . id
- . lang
- . spellcheck
- . style
- . tabindex
- . title
- >
- <html>
- <body>
- <article>
- <header>
- <h1>It’s going to rainh1>
- <p><time pubdate datetime=”2010-10-09T14:28-08:00”>time> p>
- header>
- <p>Current forecast is for bigtime rain.p>
- <section>
- <h1>Commentsh1>
- <article>
- <footer>
- <p>Posted by: Sam Buddp>
- <p><time pubdate datetime=”2010-10-10T19:10-08:00”>
- time>p>
- footer>
- <p>We need the rain.p>
- article>
- section>
- article>
- body>
- html>
<article> |
<aside> |
<bdi> |
<command> |
<details> |
<summary> |
<figure> |
<figcaption> |
<footer> |
<header> |
<hgroup> |
<mark> |
<meter> |
<nav> |
<progress> |
<ruby> |
<rt> |
<rp> |
<section> |
<time> |
<wbr> |
<audio> |
<video> |
<source> |
<embed> |
<track> |
Comments