HTML Worksheet

HTML Worksheet
  1. Which tag is used to enclose the entire HTML code for a page?
  2. Answer: <HTML> tag is used to enclose the entire HTML code for a page.
  3. Which HTML tag is used to start a paragraph? Write one option used with this tag.
  4. ...
  5. Write the expansions of the following tags used in HTML:
    (a) <P>
    (b) <BR>
    (c) <HR>
  6. ...
  7. Differentiate between paired and empty tag used in HTML.
  8. ...
  9. What is the difference between BACKGROUND and BGCOLOR attributes used in BODY tag?
  10. ...
  11. What is the purpose of using <BODY> tag in HTML code?
  12. ...
  13. 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?
  14. ...
  15. What is the method of using a comment line in a HTML code?
  16. ...
  17. In what file format HTML page is saved?
  18. ...
  19. Write HTML code to set the background color to Lime and text color to Blue.
  20. ...
  1. Answer: <HTML> tag is used to enclose the entire HTML code for a page.
  2. Answer: <P> tag is used to start a paragraph. ALIGN option is used with this tag. 
    Example, <P ALIGN=CENTER>
  3. Answer:
    (a) Paragraph
    (b) Line Break
    (c) Horizontal Rule
  4. 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
  5. 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.
  6. 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.
  7. 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)
  8. Answer: The comment is given as:
    <!-- This is a comment line -->
  9. Answer: HTML page is saved with extension dot html (.html) or dot htm (.htm).
  10. Answer: 
    <BODY BGCOLOR=Lime TEXT= Blue>