MPSKR/REFLECTION WORKSHEET/CLASS 7/ CH-4(Introduction to HTML 5)
A. Multiple choice questions:
1. Which HTML tag is used to create a hyperlink?
a. <link> b. <a> c. <href> d. <p>
2. In HTML, which attribute is used to provide alternative text for images?
a. alt b. title c. description d. image
3. Which HTML tag is used to create a line break within the text?
a. <br> b. <lb> c. <newline> d. <break>
4. What does the "href" attribute in the HTML <a> tag specify?
a. The horizontal alignment of the link b. The hyperlink reference
c. The heading level for the link d. The size of the link
B. Fill in the blanks:
1. The __________ tag is used to define a table row in HTML. Ans. <tr>
2. To make the text bold _____________ tag is used. Ans. <b>
3. _______ tag is used to specify the most important heading in the HTML document. Ans. <h1>
4. _________ attribute of the <img> tag specifies the image to be embedded in a web page. Ans. src
5. ____________________ is the foundation of all web pages. Ans. HTML
6. HTML is not a programming language, but rather a __________________ language. Ans. markup
7. In HTML, tags are also known as ________________________. Ans. elements
8. HTML tags are enclosed in ___________ brackets. Ans. Angular brackets<>
9. The head part consists of _______________ tag. Ans. <title> tag
10. The main part of the web page starts with ________________ tag. Ans. <body>
11. ___________________ tag is used to display all whitespace characters. Ans. <pre>
C. State whether True or False
1. <Head> tag is a container tag. TRUE
2. HTML is a case sensitive language. FALSE
3. Src attribute of the <a> tag is used to specify the file to be linked. FALSE
4. <h6> specifies the least important heading. TRUE
5. <br> tag is used to separate different sections of a web page. FALSE
D. Name the following: -
1. A powerful and feature-rich code text editor- Ans. Visual Studio Code or Sublime Text
2. A free and open-source code editor- Ans. Atom or Brackets
3. A simple and easy-to-use text editor- Ans. Notepad, Notepad++
E. Define the following:-
Text Editor- A text editor is a basic program that allows you to write and edit text files.
Attribute - It is the additional information about the element with a value that is used within the angular
brackets.
F. Answer the following questions-
1. Name the two parts of HTML document.
Ans. The two parts of HTML document are <HEAD> tag and <BODY> tag.
2. What is use of the <TITLE> tag?
Ans. The text inside <TITLE> tag is displayed on the title bar of the browser window.
3. Differentiate between colspan and rowspan.
colspan rowspan
The colspan attribute specifies the number of The rowspan attribute specifies the number of rows
columns a cell should span. a cell should span.
4. Differentiate between cellpadding and cellspacing.
Cellpadding Cellspacing
The cellpadding attribute is used to specify the The cellspacing attribute specified the amount of
amount of space between the cell border and the space between cells in a table.
cell content in HTML tables.
G. Rewrite the following statements after correcting them:-
1. <a src= “class.html”> Ans. <a href=”class.html”>
2. <font type= “arial” colour= “red”> Ans. <font type= “arial” color= “red”>
3. <p><b>HELLO</p></b> Ans. <p><b>HELLO</b></p>
4. < HTML > Ans. <HTML>
5. <Font color= Light Yellow> Ans. <Font color= “Light Yellow”>
H. Define the purpose of following tags: -
1. <!DOCTYPE html>- This tag is the document type declaration. It tells the browser what kind of document
this is.
2. <A> tag- This tag is used to create a hyperlink.
3. <IMG> Tag - This tag is used to insert an image.
4. <FONT> Tag - The <font> tag was used in HTML to specify the font type, font size, and color of text.
5. <HR> Tag- The <HR> tag is displayed as a horizontal line. By default, it is horizontally centre aligned.
6. <TABLE> tag - The <TABLE> tag is used to define a table in HTML.
7. <pre> Tag- The <pre> tag is used to define preformatted text.
8. <i>- Makes the text italic
9. <b> Makes the text bold
10. <mark> Highlights the text
11. <sup> Writes the word in power e.g. 23rd
12. <sub> Writes the word in base e.g. (102)10
I. Write any one attribute of the following tags: -
<HR> tag – Ans. color, size
<TABLE>- Ans. Border, cellpadding
<A> - Ans. href
<IMG> - Ans. src