Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Ch.

7 HTML – Advanced Features

Q.I Select the correct option.


1) Which of the following are the elements of a form that can be added to
a webpage?
(a) text fields (b) checkboxes

(c) radio buttons (d) all of these

2) A list that can be placed inside another list is called a .


(a) definition list (b) nested list

(c) both a and b (d) none of these

3) Every item in an unordered list is displayed with the style of


bullet by default.
(a) disc (b) square

(c) circle (d) none of these

Q. II Answer the following questions.


1. Write HTML code to insert an image with the following attributes in a
web page.
URL of the image - sunset.gif
Alternate Text - Sunset
Width of the image - 32
height of the image - 32
width of the border = 4

Ans: <html>
<body>
<img src="sunset.gif " alt="Sunset" width="32" height="32"
border=”4”>
</body>
</html>

2. Write the HTML code to display the following on a web page.


iii. Ice-cream
 I like to have vanilla ice-cream

CI/ Ch.7 HTML – Advanced Page 1 of


Ch. 7 HTML – Advanced Features

CI/ Ch.7 HTML – Advanced Page 2 of


Ch. 7 HTML – Advanced Features

iv. Dark Chocolate


Ans: <OL TYPE = ‘i‘ START= 3>
<LI> Ice-cream
<UL>
<LI> I like to have vanilla ice-cream
</UL>
<LI> Dark chocolate
</OL>

3. What is the use of a marquee tag in HTML? Explain its attribute.


Ans: A marquee tag is used to make the text or image roll across a
small section of a browser window.
The direction attribute of the <marquee> tag specifies the rolling
direction of the marquee.

4. You have created the following link in HTML.


<a href= “#Section 1”> India is my country!!!</a>
Identify the type of the link. Explain the name attribute of the <a> tag.
Ans: Internal link.
The ’name’ attribute is used to name the section of the document
to be linked.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

CI/ Ch.7 HTML – Advanced Page 3 of

You might also like