You are on page 1of 4

Web Development

Assignment 1
Name: M. Ibrahim Moazzam
Question 01: Describe and implement the following HTML tags. Attach the screen
shot and output.

1. <h1> </h1>
The <h1> is an HTML tag that indicates a heading on a website. The h1 is considered
the most important tag, and the h6 is the least important tag. There are six different headings tag
in HTML from <h1> to <h6> and each tags has a different way to display that content on a web
browser.

Code:

Output:

2. <p> </p>
In HTML <p> tag is used for paragraph. When we write some text in this <p> tag it
should consider as a paragraph after completing the text closing </p> tag is used to show
that the paragraph ends here.
Web Development

Code:

Output:

3. <br>
This tag is used to break the line. It is an empty tag which means that it has no end tag.
This tag can be used in different way such as writing a poem.

Code:

Output:
Web Development

4. <a href=“ ”> </a>


The <a> tag defines a hyperlink, which is used to link from one page to another. The most
important attribute of the <a> element is the href attribute, which indicates the link's
destination. If the <a> tag has no href attribute, it is only a placeholder for a hyperlink.

Code:

Output:

While clicking on that link the


following page will open instantly.

5. <img src=“ ” alt=“ ”>


The <img> tag is used to embed an image in an HTML page. There are two attributes in the
<img> tags:
1. src: Specifies the path to the image
2. alt: Specifies an alternate text for the image, if the image for some reason cannot be
displayed.
Web Development

Code:

Output:

You might also like