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.
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>Output

Try or Test The Corresponding Code Here
Last updated