<html>
<head>
<title>An Introduction to the Structural Elements in HTML5 DEMO</title>
<style type="text/css">
header, footer, section, article, nav, aside {
display:block;
border:1px solid #000000;
padding:5px;
margin:10px;
}
span {
color:#ff3333;
}
</style>
<!--[if lt IE 9]>
<script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<header>
<span>This is a <header> element.</span>
<h1>Breaking News</h1>
<div>Catch up on all the latest news stories.</div>
<p><span><em>This page demonstrates the techniques outlined in the tutorial: An Introduction to the Structural Elements in HTML5.</em></span></p>
</header>
<nav>
<span>This is a <nav> element.</span>
<ul>
<li><a href="#">Technology</a></li>
<li><a href="#">Business</a></li>
<li><a href="#">Entertainment</a></li>
</ul>
</nav>
<section id="top_story">
<span>This is a <section> element.</span>
<h2>Top Story</h2>
<article>
<span>This is an <article> element with <section> elements inside it.</span>
<section class="intro">
<p>This <section> element is the top news story article introduction, with an ID attribute of "intro". This can have other elements within it such as <p> and <div> as well as media items. This <section> is inside an <article>, which is in turn inside another <section>. The page content as a whole is divided into <section> elements, which can also divide the sections of an article as in this case.</p>
</section>
<section class="story">
<p>This <section> element is the main content of the article, with an ID attribute of "story".</p>
</section>
<section class="conclusion">
<p>This <section> element is the conclusion or summary of the article, with an ID attribute of "conclusion".</p>
</section>
<aside>
<span>This is an <aside> element.</span>
<p>Were you there? Send us an email... </p>
</aside>
</article>
</section>
<section id="other_news">
<span>This is a <section> element with <article> elements inside it.</span>
<h2>Other News</h2>
<article>
<h3>Article Heading</h3>
<div class="article_content">
Here is some article content.
</div>
</article>
<article>
<h3>Article Heading</h3>
<div class="article_content">
Here is some article content.
</div>
</article>
<article>
<h3>Article Heading</h3>
<div class="article_content">
Here is some article content.
</div>
</article>
</section>
<section id="popular_stories">
<span>This is a <section> element.</span>
<h2>Popular Stories</h2>
<ul>
<li><a href="#">Story</a></li>
<li><a href="#">Story</a></li>
<li><a href="#">Story</a></li>
</ul>
</section>
<section id="multimedia_items">
<span>This is a <section> element.</span>
<h2>Audio and Video News</h2>
<ul>
<li><a href="#">Audio Video</a></li>
<li><a href="#">Audio Video</a></li>
<li><a href="#">Audio Video</a></li>
</ul>
<aside>
<span>This is an <aside> element.</span>
<p>Please send us your videos... </p>
</aside>
</section>
<footer>
<span>This is a <footer> element.</span>
<p>This site is produced by Great Sites Ltd.</p>
</footer>
</body>
</html>
Output
300px
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |