HTML Exercise (1)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

HTML exercise

1.

<!DOCTYPE>
<html>
<head>
<title>Web page title</title>
</head>
<body>
<h1>Write Your First Heading</h1>
<p>Write Your First Paragraph.</p>
</body>
</html>
2.
<!DOCTYPE html>
<html>
<body>

<p>I am normal</p>
<p style="color:red;">I am red</p>
<p style="color:blue;">I am blue</p>
<p style="font-size:50px;">I am big</p>

</body>
</html>

3.
<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>

4.

<!DOCTYPE html>

<html>

<body>

<h1 style="text-align:center;">Centered Heading</h1>

<p style="text-align:center;">Centered paragraph.</p>

</body>

</html>

5.

<!DOCTYPE html>

<html>

<body>

<p>This text is normal.</p>

<p><strong>This text is important!</strong></p>

</body>

</html>

6.

<!DOCTYPE html>

<html>

<body>

<p>Do not forget to buy <mark>milk</mark> today.</p>

</body>

</html>
7.

<!DOCTYPE html>

<html>

<body>

<p>This is <sub>subscripted</sub> text.</p>

<p>This is <sup>superscripted</sup> text.</p>

</body>

</html>

8.

<!DOCTYPE html>
<html>
<body>
<h3 style="color:Tomato;">Hello World</h3>
<p style="color:DodgerBlue;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
<p style="color:MediumSeaGreen;">Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
</body>
</html>

You might also like