HTML and CSS Reference
In-Depth Information
The
<source>
element is used to specify a media resource for media elements such as
<video>
and
<audio>
. Developers can specify a number of
<source>
elements for a single media element.
<video width=”400” height=”225” poster=”img/poster.png” id=”myVideo”>
<source src=”videos/mikethefrog.webm” type=”video/webm”>
<source src=”videos/mikethefrog.ogv” type=”video/ogv”>
<source src=”videos/mikethefrog.mp4” type=”video/mp4”>
</video>
<source>
The
<span>
element can be used to group a passage of text so that it can be targeted with CSS or
JavaScript. The element itself has no semantic meaning.
<span>
Mike The Frog is highly skilled in
<span
class=”nonsense”>
HTMLJavaPress
</span>
.
The
<strong>
element is used to mark up important text. This text will usually be rendered in bold by
default.
<strong>
<p>
<strong>
Do not cross the bridge
</strong>
, as the support structure has been
weakened.
</p>
The
<table>
element is used to mark up tabular data.
Tables should never be used for creating page layouts.
<table>
<tr>
<th>Subject</th>
<th>Result</th>
</tr>
<tr>
<td>English</td>
<td>B</td>
</tr>
<tr>
<td>Math</td>
<td>A</td>
</tr>
<tr>
<td>Science</td>
<td>C</td>
</tr>
</table>
<table>
The
<tbody>
element should contain the rows that present the table data.
<table>
<thead>
<tr>
<th>Subject</th>
<th>Result</th>
</tr>
</thead>
<tbody>