Internet Technologies
1.0.0
1.0.0
  • Introduction
  • Contents
  • Practical List
  • HTML & CSS
    • Q1
    • Q2
    • Q3
    • Q4
    • Q5
  • JAVA Programs
    • Q6
    • Q7
    • Q8
    • Q9
    • Q10
    • Q11
    • Q12
  • JAVASCRIPT
    • Q13
    • Q14
    • Q15
  • JDBC
    • Q16
    • Q17
  • JSP
    • Side Note
    • Q18
    • Q19
    • Q20
    • Q21
    • Q22
    • Q23
  • End
Powered by GitBook
On this page
  • Code
  • Output
  1. HTML & CSS

Q1

Question 1

PreviousPractical ListNextQ2

Last updated 4 years ago

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>

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

Browse Source Code
Live Demo html-1.html
850B
html-1.html
Download html-1.html
Image output for html-1.html