On Github dpashkevich / pres-semantichtml
Composed of elements
<html> <!-- ROOT ELEMENT --> <head> <!-- METADATA: title, author, description, etc. --> </head> <body> <!-- PAYLOAD CONTENT --> </body> </html>
Many overlook that html is actually a full element, just like others
The head element can contain lots of useful information about the document (metadata), this is akin to a front page of a publication.
MATTERS!
Links are what makes hypertext hypertext
link - isn't just a tag you use to include CSS. It's a LINK to an external resource!
<a href="/cats.html">Please don't break my href!</a>
<link rel="shortcut icon" href="/favicon.ico"> <link rel="apple-touch-icon" href="/touch-icon.png"> <link rel="stylesheet" href="/styles/main.css">… used to augment the current document, generally automatically processed by the user agent.
See the spec for more
Don't reinvent the bicycle, the spec already defines a lot of useful cases. Feel free to experiment though.Are you sure?
Are you sure?
Use the class attribute
Each section is like a mini-document
search, email, url, tel,number, range, colordate, month, week, time, datetime, datetime-local
<input type="file" accept="image/*;capture=camera"> <!-- also: camcorder, microphone -->Demo
<section class="carousel"> <h1>Featured Content</h1> <article class="slide"> <h2>Slide Title</h2> <div class="slide-content"> ... </div> </article> <article class="slide"> <h2>Slide Title</h2> <div class="slide-content"> ... </div> </article> </section>More great patterns from Anthony Ticknor Extract common patterns and reuse them! Also improves developer productivity * Minimal effort repetition * Better integration with external services * Eventually better user experience
Your HTML = your IA
Don't break their functionality!