HTML Tags

Table of Contents

<a> reference

<base> reference

Specify a default URL and a default target for all links on a page:

<blockquote> reference

Style <blockquote> correctly howto

blockquote p:last-child { margin-bottom: 0; }

<header> reference

Typically contains:

<meta> reference

Viewport discussion

User's visible area of a web page.

when we started surfing the internet using tablets and mobile phones, fixed size web pages were too large to fit the viewport. To fix this, browsers on those devices scaled down the entire web page to fit the screen.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<script> reference

Can I put content within a <script> element with src attribute? discussion

Shortly, No.

According to the HTML5 draft specification, <script> elements with src attributes should only have commented-out code, which is intended to give documentation for the script.

<style> reference

scoped

<table> reference

Can I put non table elements under <table>? discussion

Yes.

Document languages other than HTML may not contain all the elements in the CSS 2.1 table model. In these cases, the "missing" elements must be assumed in order for the table model to work.

Is there a simpler way to right align text in a <table>? discussion

No. But you can use class and css efficiently as follows:

<table class="products">
  <tr>
    <td>...</td>
    <td class="price">10.00</td>
    <td>...</td>
  </tr>
  <tr>
    <td>...</td>
    <td class="price">11.45</td>
    <td>...</td>
  </tr>
</table>
table.products td.price {
  text-align: right;
}

<video> reference

<video autoplay controls>
    <source src="{filename}" type="video/mp4">
</video>

Supports:

MP4 (video/mp4)
MPEG 4 files with H264 video codec and AAC audio codec
WebM (video/webm)
WebM files with VP8 video codec and Vorbis audio codec
Ogg (video/ogg)
Ogg files with Theora video codec and Vorbis audio codec

Attributes:

width, height
seems to use the source size if not specified

What is ARIA discussion

Form Validation discussion

Semantic Tags

<iframe> reference

Embed another HTML page howto

<iframe src="_files/mp3.html" style="width: 100%; height: 75vh;"></iframe>