Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
You Don't Have to be a Ninja to Learn HTML5!
1. You Don’t
Have to be a
Ninja
to Learn
HTML5
@claytonlz
Desert Code Camp
April 2nd, 2011
Saturday, April 2, 2011
2. Semantic Elements
Video
Forms
Example
Boilerplate
Saturday, April 2, 2011
3. <section>
“The section element represents a generic
section of a document or application. A
section, in this context, is a thematic grouping
of content, typically with a heading.”
</section>
Saturday, April 2, 2011
6. <section id="chapter_1">
...
</section>
A general rule is that the section element is
appropriate only if the element's contents
would be listed explicitly in the document's
outline.
Saturday, April 2, 2011
7. <nav>
“The nav element represents a section of a
page that links to other pages or to parts
within the page: a section with navigation
links.”
</nav>
Saturday, April 2, 2011
10. <nav>
<ul>
<li><a href="/home">Home</a></li>
<li><a href="/news">News</a></li>
</ul>
</nav>
The nav element allows some user agents
to omit navigation information or skip
directly to navigation information.
Saturday, April 2, 2011
11. <article>
“The article element represents a self-
contained composition in a document, page,
application, or site and that is, in principle,
independently distributable or reusable, e.g.
in syndication.”
</article>
Saturday, April 2, 2011
12. <div class="entry">
<h2>My Trip to Las Vegas</h2>
<span>By John Smith</span>
<p>...</p>
</div>
Saturday, April 2, 2011
13. <article class="entry">
<h1>My Trip to Las Vegas</h1>
<span>By John Smith</span>
<p>...</p>
</article>
Saturday, April 2, 2011
14. <article class="entry">
<h1>My Trip to Las Vegas</h1>
<span>By John Smith</span>
<p>...</p>
</article>
When article elements are nested, the inner
article elements represent articles that are in
principle related to the contents of the outer
article.
Saturday, April 2, 2011
15. <hgroup>
“The hgroup element represents the heading
of a section. The element is used to group a
set of h1–h6 elements when the heading has
multiple levels, such as subheadings,
alternative titles, or taglines.”
</hgroup>
Saturday, April 2, 2011
16. <h1>Album Reviews</h1>
<h2>Stuff you should buy!</h2>
<h3>Link 80 - 17 Reasons</h3>
<h3>MF Doom - Mm..Food</h3>
<h3>Bad Brains - Build a Nation</h3>
Saturday, April 2, 2011
17. Album Reviews
|
+-- Stuff you should buy
|
+--- Link 80 - 17 Reasons
|
+--- MF Doom - Mm...Food
|
+--- Bad Brains - Build a Nation
Saturday, April 2, 2011
18. <hgroup>
<h1>Album Reviews</h1>
<h2>Stuff you should buy!</h2>
</hgroup>
<h3>Link 80 - 17 Reasons</h3>
<h3>MF Doom - Mm..Food</h3>
<h3>Bad Brains - Build a Nation</h3>
Saturday, April 2, 2011
19. <hgroup>
<h1>Album Reviews</h1>
<h2>Stuff you should buy!</h2>
</hgroup>
<h3>Link 80 - 17 Reasons</h3>
<h3>MF Doom - Mm..Food</h3>
<h3>Bad Brains - Build a Nation</h3>
The point of using hgroup is to mask the h2
element (which acts as a tagline) from the
outline algorithm.
Saturday, April 2, 2011
20. Album Reviews
|
+-- Stuff you should buy
|
+--- Link 80 - 17 Reasons
|
+--- MF Doom - Mm...Food
|
+--- Bad Brains - Build a Nation
Saturday, April 2, 2011
21. <hgroup>
<h1>Album Reviews</h1>
<h2>Stuff you should buy!</h2>
</hgroup>
<article>
<hgroup>
<h1>Link 80</h1>
<h2>17 Reasons</h2>
</hgroup>
<p>...</p>
</article>
Saturday, April 2, 2011
22. <header>
“The header element represents a group of
introductory or navigational aids.”
“The footer element represents a footer for its
nearest ancestor sectioning content or
sectioning root element.”
</footer>
Saturday, April 2, 2011