Q1

Question 1

Create HTML document with following formatting – Bold, Italics, Underline, Colors, Headings, Title, Font and Font Width, Background, Paragraph, Line Brakes, Horizontal Line, marquee text.

Tags that will be used:

  • <b>

  • <i>

  • <u>

  • <style="{color, font, font-family, bgcolor}": "value";>

  • <h{1-6}>

  • <p>

  • <br>

  • <hr>

  • <marquee>

Browse Source Code

Code

<html>

<head>
  <title>This is Title - html-1</title>
  <style>
    .p {
      font: 105px;
    }
  </style>
</head>

<body>

  <center>

    <h1>h1 Heading</h1>
    <h2>h2 Heading</h2>
    <h3>h3 Heading</h3>
    <h4>h4 Heading</h4>
    <h5>h5 Heading</h5>
    <h6>h6 Heading</h6>

    <b> Bold Text </b><br>
    <i> Italic Text </i><br>
    <u> Underlined Text </u><br>

    <p style="color:red;">I am red</p>

    <marquee width="100%" direction="right" height="100px">
      This is a marquee text.
    </marquee>

    <p style="color:blue;">I am blue</p>

    <p style="font-family:verdana">
      This is Verndana font paragraph.
    </p>

    <hr>

    <p style="font-family:'Courier New'">
      This is Courier New font paragraph.
    </p>

    <br>
    <br>

  </center>

</body>

</html>
Download html-1.html

Output

Image output for html-1.html
Live Demo html-1.html

Last updated