All programs
Web Technology Lab · BCSL504 HTML

Problem Statement Program 1

Develop the HTML page named Myfirstwebpage.html. Add the following tags with relevant content:

Set the title of the page as "My First Web Page"
Within the body use the following tags:
Moving text = "Basic HTML Tags"
Heading tags (<h1> to <h6>)
Paragraph (<p>)
Horizontal line (<hr>)
Line Break (<br>)
Block Quote (<blockquote>)
Preformatted Text (<pre>)
Logical Style (<strong>, <em>)

HTML Code Source

Myfirstpage.html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My First Web Page</title>
</head>
<body>

    <marquee>Basic HTML Tags</marquee>

    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <h3>Heading 3</h3>
    <h4>Heading 4</h4>
    <h5>Heading 5</h5>
    <h6>Heading 6</h6>

    <p>This is a paragraph.</p>

    <hr>

    <p>This is a paragraph with a <br> line break.</p>

    <blockquote>
        "This is a block quote."
    </blockquote>

    <pre>
This is a pre-formatted text.
    </pre>

    <strong>This is a strong text.</strong><br>
    <em>This is an emphasized text.</em>

</body>
</html>

Output Console

Output
Basic HTML Tags   (Moving marquee text)

Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6

This is a paragraph.

------------------------------------

This is a paragraph with a
line break.

"This is a block quote."

This is a pre-formatted text.

This is a strong text.
This is an emphasized text.

Viva Q&A Interview prep · PDF

Read the full Viva Q&A for this program in a protected viewer, then download the PDF whenever you like.

Protected content · © VTU Developer · Unauthorised distribution is prohibited