Monday, November 21, 2011

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:
  1.   . accesskey  
  2. . class  
  3. . contenteditable  
  4. . contextmenu  
  5. . dir  
  6. . draggable  
  7. . hidden  
  8. . id  
  9. . lang  
  10. . spellcheck  
  11. . style  
  12. . tabindex  
  13. . title  

  1.    
  2. >  
  3. <html>  
  4. <body>  
  5. <article>  
  6. <header>  
  7. <h1>It’s going to rainh1>  
  8. <p><time pubdate datetime=”2010-10-09T14:28-08:00”>time> p>  
  9. header>  
  10. <p>Current forecast is for bigtime rain.p>  
  11. <section>  
  12. <h1>Commentsh1>  
  13. <article>  
  14. <footer>  
  15. <p>Posted by: Sam Buddp>  
  16. <p><time pubdate datetime=”2010-10-10T19:10-08:00”>  
  17. time>p>  
  18. footer>  
  19. <p>We need the rain.p>  
  20. article>  
  21. section>  
  22. article>  
  23. body>  
  24. html>  
2. 
<article>
<aside>
<bdi>
<command>
<details>
<summary>
<figure>
<figcaption>
<footer>
<header>
<hgroup>
<mark>
<meter>
<nav>
<progress>
<ruby>
<rt>
<rp>
<section>
<time>
<wbr>
New Media Elements:
<audio>
<video>
<source>
<embed>
<track>

No comments: