HTML tutorial

Some text data can contain HTML tags. This is a very short tutorial, based on examples.
There are a number of better tutorials on the net, e.g. W3Schools.

Unformatted text
If you write some text, the browser will ignore any linebreaks and other formatting.
For instance, the following html text...

Hello

This is a sample text.
This is the next line.
...will be displayed like this by the browser...

Hello This is a sample text. This is the next line.

Linebreak tag
A HTML-tag is a special text that controls how the text is displayed.
For instance, you can add linebreaks using the tag <br>. The example above could be written...

Hello<br><br>
This is a sample text.<br>This is the next line.
...and it would be displayed like this...

Hello

This is a sample text.
This is the next line.

Paragraph tag
The text can also be divided into paragraphs, like this...

Hello
<p>
This is a sample text.<br>This is the next line.

...and it would be displayed like this...

Hello

This is a sample text.
This is the next line.

Italic and bold style
You can make the text italic and/or bold by adding the tags <i>, </i>, <b> and </b>.

<b>Hello</b><br>
This <b>is</b> a <i>sample</i> text.

...will be displayed like this...

Hello
This is a sample text.

Link tag
You can add links to external web pages, using the format
<a href="address" target="_blank">link text</a>.
The target text is used for opening a new browser window, which is usually a good idea.

The example above can be expanded to...

Hello
<p>
This is a sample text.<br>This is the next line.<br>
<a href="http://www.w3schools.com/html/" target="_blank">
This</a> is a link to a html tutorial.

...and would be displayed like this...

Hello

This is a sample text.
This is the next line.
This is a link to a html tutorial.

If you click on the link in the example, you will open a more complete html tutorial.