HTML examples

Below are some examples to format an HTML text.

<h3>This is a header of level 3</h3>

<p>
This is a paragraph with 
<b>Bold text</b>
and
<i>Italic text</i>
and a link to <a href="https://www.w3schools.com/html/">w3schools.com</a>
where you can find an HTML tutorial
</p>

<p>An e-mail address can be specified as follows:
<a href="mailto:john.sausage@gmail.com">john.sausage@gmail.com</a></p>

<p>Unordered list:</p>

<ul>
<li>Red</li>
<li>Yellow</li>
<li>Green</li>
</ul>

<p>Ordered list:</p>

<ol>
<li>Zoe</li>
<li>Jamie</li>
<li>Charles</li>
<li>Hermione</li>
</ol>

Finally, a poem in which the lines are lined up thanks to the 'line breaks':

<h3>A Wonderful Bird Is The Pelican</h3>

A wonderful bird is the pelican,<br>
His bill will hold more than his belican,<br>
He can take in his beak<br>
Enough food for a week<br>
But I'm damned if I see how the helican!<br>
<br>
<i>Dixon Lanier Merritt</i>
   

The result in HTML:

This is a header of level 3

This is a paragraph with Bold text and Italic text and a link to w3schools.com where you can find an HTML tutorial

An e-mail address can be specified as follows: john.sausage@gmail.com

Unordered list:

  • Red
  • Yellow
  • Green

Ordered list:

  1. Zoe
  2. Jamie
  3. Charles
  4. Hermione
Finally, a poem in which the lines are lined up thanks to the 'line breaks':

A Wonderful Bird Is The Pelican

A wonderful bird is the pelican,
His bill will hold more than his belican,
He can take in his beak
Enough food for a week
But I'm damned if I see how the helican!

Dixon Lanier Merritt