<p>To force<br>
line breaks<br> in a text,
<br> use the br<br> element.</p>
The <br> tag is useful for writing addresses or poems. <p> My cat is very grumpy </p>
<p> My cat is
<strong>very </strong> grumpy.
</p>
<p> My cat is
<strong>very </strong> grumpy.
</p>
<img src="images/firefox-icon.png"
alt="My test image">
This contains two attributes, but there is no closing <img> tag
and no inner content. This is because an image element doesn't wrap
content to affect it. Its purpose is to embed an image in the HTML
page in the place it appears.
<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><title> My test page</title>><head><body><img src="images/firefox-icon.png" alt="My test image"></body></html>
<h1>My main title<h1><h2>My top level heading<h2><h3>My subheading<h3><h4>My sub-subheading<h4>
<p>This is a single paragraph</p><p> At Mozilla, we're a global community of technologists and builders working together… </p>
<p> At Mozilla, we're a global community of </p><ul> <li>technologists</li> <li>thinkers</li> <li>builders</li> </ul>
<a>Mozilla Manifesto</a>
3.
Give the <a> element an href attribute, as shown below:
<a>href="">Mozilla Manifesto</a>
4.
Fill in the value of this attribute with the web address that you want
the link to:
<a>href=
"https://www.mozilla.org/en-US">
Mozilla</a>
The above example shows simple usage of the <audio> element. In a similar manner to the <img> element, we include a path to the media we want to embed inside the src attribute; we can include other attributes to specify information such as whether we want it to autoplay and loop, whether we want to show the browser's default audio controls, etc.<figure><figcaption> Listen to the T-Rex: </figcaption><audio controls src="/media/cc0-audio/t-rex-roar.mp3"> Your browser does not support the <audio> element. </audio> </figure>
none: Indicates that the audio should not be preloaded. metadata: Indicates that only audio metadata (e.g. length) is fetched. auto: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it. empty string: A synonym of the auto value. The default value is different for each browser. The spec advises it to be set to metadata.
| Events Name | Fired when |
| audioprocess | The input buffer of a ScriptProcessorNode is ready to be processed. |
| canplay | The browser can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. |
| canplaythrough | The browser estimates it can play the media up to its end without stopping for content buffering. |
| complete | The rendering of an OfflineAudioContext is terminated. |
| durationchange | The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the HTMLMediaElement.load method is called to reload it. |
| ended | Playback has stopped because the end of the media was reached. |
| loadeddata | The first frame of the media has finished loading. |
| loadedmetadata | The metadata has been loaded. |
| pause | Playback has been paused. |
| Play | Playback has begun. |
| plaing | Playback is ready to start after having been paused or delayed due to lack of data. |
| ratechange | The playback rate has changed. |
| seeked | A seek operation completed. |
| seeking | A seek operation began. |
| stalled | The user agent is trying to fetch media data, but data is unexpectedly not forthcoming. |
| suspend | Media data loading has been suspended. |
| timeupdate | The time indicated by the currentTime attribute has been updated. |
| volumechange | The volume has changed. |
| waiting | Playback has stopped because of a temporary lack of data |
| Chrome | Edge | Safari Mini | Firefox | Opera | IE |
| Support | Support | Not Support | Support | Support | Support |
As a "pure" container, the <div> element does not inherently represent anything. Instead, it's used to group content so it can be easily styled using the class or id attributes, marking a section of a document as being written in a different language (using the lang attribute), and so on.<div class="warning"><img src="/media/examples/leopard.jpg" alt="An intimidating leopard."> <p>Beware of the leopard<p> </div>
<div><p>Any kind of content here. Such as: <p>, <table>. You name it!</p></div>
<div class="shadowbox"><p>Here's a very interesting note displayed in a lovely shadowed box.</p><div>
.shadowbox {
width: 15em;
border: 1px solid #333;
box-shadow: 8px 8px 5px #444;
padding: 8px 12px;
background-image:
linear-gradient(
180deg, #fff, #ddd 40%, #ccc
);
}
| Chrome | Edge | Safari Mini | Firefox | Opera | IE |
| Support | Support | Support | Support | Support | Support |
Each embedded browsing context has its own session history and document. The browsing context that embeds the others is called the *parent browsing context*. The *topmost* browsing context — the one with no parent — is usually the browser window, represented by the Window object.<iframe id="inlineFrameExample" title="Inline Frame Example" width="300" height="200" src="https://www.openstreetmap. org/ export/embed.html? bbox=-0.004017949104309083%2C51. 47612752641776%2C0. 00030577182769775396%2C51. 478569861898606&layer=mapnik"></iframe>
| Chrome | Edge | Safari Mini | Firefox | Opera | IE |
| Support | Support | Support | Support | Support | Support |
<p>You can use
<abbr title="Cascading
StyleSheets"> CSS</abbr>
to style your <abbr
title="HyperText Markup Language"
<HTML</abbr>p>
Attributes
| Chrome | Edge | Safari Mini | Firefox | Opera | IE |
| Support | Support | Support | Support | Support | Support |
<table>
<thead>
<tr>
<th colspan="2">
The table header
></th>
</tr>
<thead>
<tbody>
<tr>
<td>The Table Body</td>
<td>The Table Columns</td>
</tr>
</tbody>
</table>
Attributes
<table>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<table>
<p>Simple table with header</p>
<table>
<tr>
<th>First name</th>
<th>Last name</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<tr>
<td>Jane</td>
<td>Doe</td>
</tr>
<table>
<p>Table with thead, tfoot,
and tbody</p>
<table>
<thead>
<tr>
<th>Header content 1</th>
<th>Header content 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Body content 1</td>
<td>Body content 2</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Body content 1</td>
<td>Body content 2</td>
</tr>
</tfoot>
</table>
<p>Table with colgroup</p>
<table>
<colgroup span="4"></colgroup>
<tr>
<th>Countries</th>
<th>Capitals</th>
<th>Population</th>
<th>Language</th>
</tr>
<tr>
<td>USA</td>
<td>Washington, D.C.</td>
<td>309 million</td>
<td>English</td>
</tr>
<tr>
<td>Sweden</td>
<td>Stockholm</td>
<td>9 million</td>
<td>Swedish</td>
</tr>
</talbe>
<p>
Table with colgroup and col
</p>
<talbe>
<colgroup>
<col
style="background-color:#0f0">
<col span="2">
</colgroup>
<tr>
<th>Lime</th>
<th>Lemon</th>
<th>Orange</th>
</tr>
<tr>
<td>Green</td>
<td>Yellow</td>
<td>Orange</td>
</tr>
</table>
<p>Simple table with caption</p>
<table>
<caption>
Awesome caption
</caption>
<tr>
<caption>
Awesome data
<caption>
</tr>
</table>
Simple table with header
| First name | Last name |
|---|---|
| John | Doe |
| Jane | Doe |
Table with thead, tfoot, and tbody
| Header content 1 | Header content 2 |
| Body content 1 | Body content 2 |
| Body content 1 | Body content 2 |
Table with colgroup
| Countries | Capitals | Population | Language |
| USA | Washington, D.C. | 309 million | English |
| Sweden | Stockholm | 9 million | Swedish |
Table with colgroup and col
| Lime | Lemon | Orange |
|---|---|---|
| Green | Yellow | Orange |
Simple table with caption