HTML Worksheet
- Which tag is used to enclose the entire HTML code for a page?
- Which HTML tag is used to start a paragraph? Write one option used with this tag.
- Write the expansions of the following tags used in HTML:
(a) <P>
(b) <BR>
(c) <HR> - Differentiate between paired and empty tag used in HTML.
- What is the difference between BACKGROUND and BGCOLOR attributes used in BODY tag?
- What is the purpose of using <BODY> tag in HTML code?
- Is it possible to view a HTML page stored in the hard disk of the computer? If yes, what is the method of viewing the same?
- What is the method of using a comment line in a HTML code?
- In what file format HTML page is saved?
- Write HTML code to set the background color to Lime and text color to Blue.
Answer: <HTML> tag is used to enclose the entire HTML code for a page.
...
...
...
...
...
...
...
...
...
- Answer: <HTML> tag is used to enclose the entire HTML code for a page.
- Answer: <P> tag is used to start a paragraph. ALIGN option is used with this tag.
Example, <P ALIGN=CENTER> - Answer:
(a) Paragraph
(b) Line Break
(c) Horizontal Rule - Answer:
In HTML, the tags that have both an ON and an OFF tag are called Paired tag.
Example: HTML, BODY, TITLE
In HTML, some of the tags have only an ON tag but no OFF tag are called empty tag.
Example: BR,HR,IMG - Answer:
The BACKGROUND attribute is used to set a picture as a background of a web page.
The BGCOLOR attribute is used to set the background color of a web page. - Answer: The <BODY> tag contains all the text and images that make up the web page. It also contains the HTML tags that provide the control and formatting of the web page.
- Answer: Yes, it is possible to view a HTML page stored in the hard disk of the computer.
To view - Right click on HTML Page >> Open with >> Web Browser(Chrome, Safari) - Answer: The comment is given as:
<!-- This is a comment line --> - Answer: HTML page is saved with extension dot html (.html) or dot htm (.htm).
- Answer:
<BODY BGCOLOR=Lime TEXT= Blue>