HTML Tags
Table of Contents
<a>
<base>
<blockquote>
- Style
<blockquote>
correctly <header>
<meta>
- Viewport
<script>
- Can I put content within a
<script>
element withsrc
attribute? <style>
<table>
- Can I put non table elements under
<table>
? - Is there a simpler way to right align text in a
<table>
? <video>
- What is ARIA
- Form Validation
- Semantic Tags
<iframe>
- Embed another HTML page
<a>
reference
<base>
reference
Specify a default URL and a default target for all links on a page:
<blockquote>
reference
Style <blockquote>
correctly howto
<header>
reference
Typically contains:
- one or more heading elements (
<h1>
-<h6>
) - logo or icon
- authorship information
<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.
- Based on the viewport, always use relative units for sizing
<script>
reference
Can I put content within a <script>
element with src
attribute? discussion
Shortly, No.
According to the HTML5 draft specification,
<script>
elements withsrc
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>
<video>
reference
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
- Stands for Accessible Rich Internet Applications
- For making web applications more accessible to people with disabilities.