This tag makes the text bold, that looks like this. The tag is the letter b, because that is the shortage of the English word bold.
This tag makes the text italic, that looks like this. The tag is the letter i, because that is the shortage of the English word italic.
This tag underlines the text, that looks like this. The tag is the letter u, because that is the shortage of the English word underline.
This tag makes the text look like it is typed by a type machine, that looks like this.
This tag makes a new line (an 'enter'). This tag doesn't have a closing tag (you don't have to use </br>). Br is the shortage of Break.
This tag centers the text.
This tag makes a new paragraph. It has the attribute align. With that you can choose whether you want your text in the left, right or center.
This tag makes a horizontal line (Horizontal Rule). This tag doesn't have a closing tag (you don't have to use </hr>). It has 2 attributes: size with what you can set the thickness (in pixels), and width, with what you can set the length in pixels or a percentage. It looks like this:
These are the 6 headings (heads).. <h1> is Head 1, that is the biggest. <h6> is Head 6, that is the smallest.
Well, that were a lot of new tags. You can combine the tags as well, this is for example bold and italics. The code for this is:
<b><i>this is for example bold and italics</i></b>
Here is a page with all discussed tags.
You are starting to know HTML.
You now know how to change the lay-out of your text.
In the next lesson, you learn even better how to decorate your text, for example with fonts, font-size and text color.
⇒ Go on with Lesson 4: Fonts
← Ga terug naar Lesson 2: Attributes
↵ Go back to the HTML-course