0% found this document useful (0 votes)
11 views

HTML Chapter With Exercise

Uploaded by

aadyakanwar06
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

HTML Chapter With Exercise

Uploaded by

aadyakanwar06
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Excercise

A. Fill in the blanks:-


1. <br> tag breaks the line and displays the text from the next line.
2. There are six heading levels in HTML.
3. <P> tag is used to start a new paragraph.
4. <p align=”right”> attribute of the paragraph tag is used to align the paragraph right side.
5. <body bgcolor> tag is used to change the background colour of the webpage.
6. .html is the extension of HTML document.
7. The closing tag includes a forward slash
8. Tags are also known as elements.

B. State True or False:-


1. The BR tag has a corresponding closing tag. False
2. The title tag is given inside the <body> tag. False
3. Top margin attribute is given within the body tag. True
4. There are four reading levels available in HTML. False
5. The syntax to change the font colour is <fontcolor=colourname> False
6. Empty elements has both on and off tag. False
7. HTML stands for hypertext markup language. True
8. An HTML file can be saved with any extension. False

C. Answer the following questions:-


1. What is HTML?
Ans. HTML is a complete code package that allows a user to create web pages. It includes text and
graphics. You can add links to your webpage. Hyperlinks are the highlighted text segments or images
that connect the web page to other pages on the web.

2. What do you understand by tags? How many types of tags are there?
Ans. A tag is a piece of code which acts as a label that a web browser interprets. It instructs a web
browser what to display and how to display.
There are two types of tags container tags and empty tags. The tags that include both on and off are
called container tags. Empty tags contain only an on tag and do not have of tag.

3. What do you understand by attributes in HTML?


Ans. An attribute is a property that provide provides additional information about an HTML element.
Attributes are always specified in the opening tag. All attributes consists of two parts a name and a
value.
For example: <font size=4>

4. Explain the paragraph tag and its attributes.


Ans. <p> tag offers a way to structure the text into different paragraphs. Each paragraph of text should
be given between opening <p> and closing </p> tags. A paragraph can be aligned using the attributes
named “Align”. Various attributes of a paragraph element are as follows:
Syntax: <p> Starts a new paragraph
<p align=”center”> Aligns the text to the center
<p align=”right”> Aligns the text to the right side.
<p align=”left”> Aligns the text to the left side.
<p align=”justify”> Aligns the text evenly between both left and right margins.

5. What is the significance of <br> tag?


Ans. Anything written after <br> tag breaks the line and displays the text from next line.

You might also like