Question 2
What are empty tags? Write their use.
Answer
Empty tags: These tags have only an ON tag - there are no OFF tags. The reason for this is that they do something on their own. They do not act on block of text. An example of this would be the <BR> (Break) tag.
Question 3
What is the use of Head element?
Answer
The Head element gives the information about your document. With the exception of the information contained within the <TITLE> </TITLE>, all the information placed in the <HEAD> </HEAD> tags is not displayed in the browser.
Question 4
What is a web browser? Give any three examples of we browsers.
Answer
A Web browser is application software that allows us to view and explore information on the web.
Web browser can show text, audio, video, animation and more. It is the responsibility of a web browser to interpret text and commands contained in the web page.
C. Choose the correct option.
1. HTML tags consist of a
(a) left angular bracket (<)
(b) right angular bracket (>)
(c) tag name
(d) all of these
Ans : (d) all of these
2. An HTML element usually consists of
(a) start tag
(b) end tag
(c) content
(d) all of these
Ans : (d) all of these
3. In HTML, a color can be specified by
(a) color name
(b) RGB value
(c) HEX value
(d) any of these
Ans : (b) RGB value
4. For displaying colour black, the RGB value must be
(a) 0,0,0
(b) 255,255,255
(c) 0, 255, 0
(d) 255, 0, 255
Ans : (a) 0, 0, 0
D. Write T for True and F for False.
1. Title element contains the title of the document.
Ans : True
2. Body element is the largest part of HTML document.
Ans : True
3. In HTML, the font tag has three attributes called size, color, and face to customize fonts.
Ans : True
4. The bgcolor attribute is used to control the background of an HTML element.
Ans : True
5. In HTML, the range of accepted values for font size is 1 to 7.
Ans : True
Additional Questions
Question 1
What is the use of title tag in HTML?
Answer
The Title tag contains the document's title and identifies its contents in a global context.
Question 2
Write a code in HTML to print 'hello'?
Answer
<!DOCTYPE html>
<html>
<body>
<h1>hello</h1>
</body>
</html>
Output:- hello
Question 3
Write the names of the following tags.
<h1>, <br>, <b>, <i>, <u>
Answer
<h1> - heading 1
<br> - break tag
<b> - bold tag
<i> - italic tag
<u> - underline tag
- Jatin Dewangan