GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing en.wikipedia.org — Article element - Wikipedia (Redirected from Article element (HTML5)) The HTML article element is a semantic element, similar to Features and usageThe ExamplesAt its most basic, <article> <h2>Insert Title Here</h2> <p>Insert a paragraph of text here</p> </article> Forum entries and comments are typically implemented by nesting <article> <header> <h1>Entry Title</h1> <p>Header Info</p> </header> <p>Content of entry...</p> <article> <header> <h2>Author: John Smith</h2> <p>Comment Info</p> </header> <p>Comment text...</p> </article> <article> <header> <h2>Author: Jane Johnson</h2> <p>2nd Comment's Info</p> </header> <p>Comment text...</p> </article> </article> AttributesThe Comparison with <section>HTML5 introduced both Nesting examplesTo better organize independent content <article> <h2>Names of Shapes</h2> <p>There are several different types of shapes...</p> <section> <h4>Triangles</h4> <p>Here is some info about triangles</p> </section> <section> <h4>Circles</h4> <p>These Pi-shaped wonders are mesmerizing and...</p> </section> </article> Conversely, it may sometimes be appropriate to nest an <section> <h1>Articles about Paris Tourism</h1> <article> <h3>The Eiffel Tower</h3> <p>Standing at over 12 inches high...</p> </article> <article> <h3>The Louvre</h3> <p>A must-see in Paris tourism...</p> </article> </section> Browser supportThe following browsers have support for this element:[6]
References
External links
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |