Last active
January 2, 2016 04:09
-
-
Save stormwarning/8248790 to your computer and use it in GitHub Desktop.
Semantic content constructs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Clean, efficient, complex content elements. | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Quote with source citation. | |
--> | |
<blockquote> | |
<p>[quote]</p> | |
<cite>[source]</cite> | |
</blockquote> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Figure element with caption. | |
`figure`s can also consist of `table`, `object`, `svg`, etc. instead of `img`. | |
`small` print is also sometimes used for attribution. | |
--> | |
<figure> | |
<img src="[image]"> | |
<figcaption> | |
<p><small>[caption]</small></p> | |
</figcaption> | |
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Functional, accessible form. | |
Use `data-` attributes in combination with CSS pseudo-classes for extra info. | |
--> | |
<form> | |
<label data-validation-error="[errormsg]" for="[name]">[label]</label> | |
<input data-form-instructions="[instructions]" name="[name]" tabindex="[i]" type="[type]"> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Pull-quote text that isn't repeated within content structure. | |
Use `content: attr(data-pullquote);` in CSS | |
@link http://miekd.com/articles/pull-quotes-with-html5-and-css/ | |
--> | |
<p data-pullquote="[quote]">[content]</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Simple, accessible data table. | |
`scope` can equal `col`, `row`, `colgroup`, or `rowgroup`. | |
@link http://webaim.org/techniques/tables/data | |
--> | |
<table summary="[summary]"> | |
<caption>[caption]</caption> | |
<thead> | |
<tr> | |
<th scope="col">[header]</th> | |
</tr> | |
</thead> | |
<tfoot> | |
<tr> | |
<td>[cell]</td> | |
</tr> | |
</tfoot> | |
<tbody> | |
<tr> | |
<td>[cell]</td> | |
</tr> | |
</tbody> | |
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Accessible but minimal Tweet object. | |
@link https://dev.twitter.com/terms/display-requirements | |
--> | |
<figure class="tweet h-entry"> | |
<div class="tweet-author h-card p-author"> | |
<a class="u-url profile" | |
href="[author url]" | |
aria-label="[author name]"> | |
<img class="tweet-author__avatar u-photo" src="[img]"> | |
<span class="tweet-author__name p-name">[author name]</span> | |
<span class="tweet-author__nickname p-nickname" dir="ltr"> | |
<b>[author nickname]</b> | |
</span> | |
</a> | |
<a class="tweet-author__follow-button"></a> | |
</div> | |
<blockquote class="tweet-content e-entry-content"> | |
<p class="tweet-text e-entry-title">[content]</p> | |
<div class="tweet-timestamp"> | |
<a class="u-url" href="[tweet url]"> | |
<time pubdate class="dt-updated" datetime="[utc]">[timestamp]</time> | |
</a> | |
</div> | |
</blockquote> | |
</figure> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment