Advertisement
abhijit5893

HTML5 Elements Part 1

Oct 24th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.51 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>HTML5 ELEMENTS PART 1</title>
  5. <script>
  6. function clicked(){
  7. document.getElementById('test').innerText="Hello world";
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <article>
  13. <h4>Article</h4>
  14. <p>The article element represents a component of a page that consists of a self-contained composition in a document, page, application, or site and that is intended to be independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.</p>
  15. </article>
  16. <aside style="font-size:x-large;font-style:oblique;float:center;">
  17. <h4>Aside</h4>
  18. <p>The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.</p><br/>
  19. <p>Content within an aside tag should be stand-alone information that is related to the article in context.</p>
  20. </aside>
  21. <p>This text is written left to right. <bdi dir="rtl">And this would be right to left.</bdi></p>
  22. <label id="test" />
  23. <menu>
  24. <command type="command" label="Click me" onclick="clicked()">Click here</command>
  25. </menu>
  26. <details open="open">
  27. <summary>Details</summary>
  28. <p>If your browser supports this element, it should allow you to expand and collapse these details.</p>
  29. </details>
  30.  
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement