The English, American or U.S. (United States) Flag De Nederlandse Vlag, de vlag van Nederland

Les 3: Text Decoration - Example 6

Here you see all tags we learned in lesson 3.

With <b> you make the text bold,
with <i> you make it in italics,
with <u> you underline it and
with <tt> you type like a type machine.

With <center> you can center your text,
and with <br> you make a new line:

With <p> you make a new paragraph.

A paragraph can be centered as well, by adding the attribute align="center".

You can align it on the right, by adding the attribute align="right".

A horizontal line is also possible with <hr>:


You can change the thickness of the line with the attribute size, and the length with width.

At last we have 6 headings:

This is <h1> (Head 1). The biggest possible heading.

This is <h2> (Head 2).

This is <h3> (Head 3).

This is <h4> (Head 4).

This is <h5> (Head 5).
This is <h6> (Head 6). The smallest possible heading.

This is the HTML-sourcecode of that example:

    <p>
        
<b>With &lt;b&gt; you make the text bold</b>,<br />
        
<i>with &lt;i&gt; you make it in italics</i>,<br />
        
<u>with &lt;u&gt; you underline it</u> and<br />
        
<tt>with &lt;tt&gt; you type like a type machine</tt>.
    
</p>
    
    
<p>
        
<center>
            With &lt;center&gt; you can center your text,
        
</center>
        and with &lt;br&gt; you make a new line: 
<br /><br />
    
</p>
    
    
<p>
        With &lt;p&gt; you make a new paragraph.
    
</p>
    
    
<p align="center">
        A paragraph can be centered as well, by adding the attribute align="center".
    
</p>
    
    
<p align="right">
        You can align it on the right, by adding the attribute align="right".
    
</p>
    
    
<p>
        A horizontal line is also possible with &lt;hr&gt;:
        
<hr />
        You can change the thickness of the line with the attribute 
<i>size</i>, and the length with <i>width.</i>
    
</p>
    
    
<p>
        At last we have 6 headings:
        
<h1>This is &lt;h1&gt; (Head 1). The biggest possible heading.</h1>
        
<h2>This is &lt;h2&gt; (Head 2).</h2>
        
<h3>This is &lt;h3&gt; (Head 3).</h3>
        
<h4>This is &lt;h4&gt; (Head 4).</h4>
        
<h5>This is &lt;h5&gt; (Head 5).</h5>
        
<h6>This is &lt;h6&gt; (Head 6). The smallest possible heading.</h6>
    
</p>
↵ Back to Lesson 3
Was this information useful? If so, please consider linking to this website:
Thank you!