CBSE CS

cbse cs logo

Home

MCQ on HTML

Answers the following MCQ on HTML

Question 1. The tags that need both starting and ending tags are called: .

Option a.) Container tags
Option b.) Empty tags
Option c.) Closing tags
Option d.) None of these
Answer

#Ans. a





Question 2. tag is used to change the font size, style, and colour of the text.

Option a.) <BR>
Option b.) <HR>
Option c.) <H1>
Option d.) <FONT>
Answer

#Ans. d





Question 3. The hexadecimal RGB value of the black colour is

Option a.) #FFFFF
Option b.) #000000
Option c.) #0
Option d.) None of these
Answer

#Ans. b




Question 4. The language of the HTML document is defined with the help of the attribute of the <HTML> tag.

Option a.) L
Option b.) LANG
Option c.) BODY
Option d.) None of these
Answer

#Ans. b





Question 5. attribute of the <BODY> tag is used to insert an image as the background of a Web page.

Option a.) IMAGE
Option b.) BACKGROUND
Option c.) FORMAT
Option d.) None of these
Answer

#Ans. b





Question 6. tag is used to centralize the text within the segment.

Option a.) <CENTER>
Option b.) <H1>
Option c.) <TEXT>
Option d.) None of these
Answer

#Ans. a





Question 7. The output of the 3<SUP>rd<SUP> code is

Option a.) 3rd
Option b.) 3<SUP>rd<SUP>
Option c.) 3
Option d.) None of these
Answer

#Ans. a





Question 8. Among the following, which is the RGB color scheme for the colour Red?

Option a.) 255, 0, 0
Option b.) 0, 0, 255
Option c.) 0, 255, 0
Option d.) None of these
Answer

#Ans. a





Question 9. Which is the first version of HTML?

Option a.) HTML 1.0
Option b.) HTML 5
Option c.) HTML 2.0
Option d.) HTML 3.0
Answer

#Ans. a





Question 10. Which HTML tag is used to insert title in an HTML document?

Option a.) <TITLE>
Option b.) <HEAD>
Option c.) <BODY>
Option d.) <HTML>
Answer

#Ans. a





Question 11. Which types of tags are used in HTML?

Option a.) Predefined tags
Option b.) User-defined tags
Option c.) Tags used only for linking
Option d.) Language-specific tags
Answer

#Ans. a





Question 12. The FACE attribute of the <FONT> tag is used for ..

Option a.) Changing the font type of the text
Option b.) Changing the font color of the text
Option c.) Changing the font size of the text
Option d.) None of these
Answer

#Ans. a





Question 13. Which tag is used for line break?

Option a.) <HR>
Option b.) <BR>
Option c.) <P>
Option d.) <EM>
Answer

#Ans. b





Question 14. Which attribute is used with the <BODY> tag to apply the background colour to an HTML page?

Option a.) BACKGROUND
Option b.) COLOR
Option c.) BGCOLOR
Option d.) BCOLOR
Answer

#Ans. c





Question 15. Which HTML tag is used to underline the text?

Option a.) <I> b. <B>
Option c.) <C> d. <U>
Answer

#Ans. d





Question 16. HTML tags are placed between .

Option a.) Hard brackets
Option b.) Angular brackets
Option c.) Curly brackets
Option d.) None of these
Answer

#Ans. b





Question 17. HTML tags can be written in .

Option a.) Capital letters
Option b.) Small letters
Option c.) Both capital and small letters
Option d.) None of these
Answer

#Ans. c





Question 18. Which value is used for white color?

Option a.) #00FFFF
Option b.) #000000
Option c.) #FFFFFF
Option d.) #FFFF00
Answer

#Ans. c





Question 19. Which is not a logical text style?

Option a.) <DFN>
Option b.) <EM>
Option c.) <I>
Option d.) <CITE>
Answer

#Ans. c





Question 20. Empty tags require:

Option a.) Opening tag
Option b.) Closing tag
Option c.) Both opening and closing tags
Option d.) None of these
Answer

#Ans. a





Question 21. Which HTML tag is used to insert a horizontal rule?

Option a.) <HR>
Option b.) <BR>
Option c.) <P>
Option d.) <EM>
Answer

#Ans. a





Question 22. Which one is the correct syntax of the HTML tag?

Option a.) <PARA>HTML</PARA>
Option b.) <b>HTML<b>
Option c.) <P>HTML</P>
Option d.) None of these
Answer

#Ans. c





Question 23. The <BASEFONT> tag is supported by .

Option a.) Internet Explorer
Option b.) Mozilla
Option c.) Opera
Option d.) All of these
Answer

#Ans. a





Question 24. The headings can be differentiated on the basis of their and .

Option a.) Typeface, space
Option b.) Font type, size
Option c.) Font size, alignment
Option d.) Space between the headings, alignment
Answer

#Ans. a





Question 25. When you want to provide breaks in the text or want the text to appear as a new, separate line, you need
to use the tag.

Option a.) <BR>
Option b.) <P>
Option c.) <HR>
Option d.) <BODY>
Answer

#Ans. a





Question 26. A/an is a code that is put into the HTML code of a Web page to hide the text in a Web page.

Option a.) ALIGN attribute
Option b.) Comment
Option c.) Content
Option d.) None of these
Answer

#Ans. b





Question 27. Which among the following will create a bulleted list?
Option a.) Unordered
Option b.) Option
Option c.) Decorated
Option d.) Ordered
Answer

#Ans. a





Question 28. Web browsers display images in the following format:

Option a.) GIF
Option b.) XBM
Option c.) JPEG
Option d.) All of these
Answer

#Ans. d





Question 29. The attribute of the <IMG> tag is used to provide alternate text for an image.

Option a.) ALT
Option b.) SRC
Option c.) IMG
Option d.) None of these
Answer

#Ans. a





MCQ Questions for Class 10 HTML with Answers
Question 1. HTML is a

Option a.) package
Option b.) software
Option c.) markup language
Option d.) None of these
Answer

#Answer: c. HTML is a markup language which is used to define the layout and attributes of WWW document.





Question 2. HTML tags are enclosed in

Option a.) curly brackets
Option b.) square brackets
Option c.) double quotes
Option d.) angular brackets
Answer

#Answer: d. HTML tags are enclosed within angular brackets (< and >).





Question 3. Which of the following tag identifies the document as an HTML document?

Option a.) <HTML>
Option b.) <HEAD>
Option c.) <BODY>
Option d.) <P>
Answer

#Answer: a. tag identifies the document as an HTML document.





Question 4. Container elements in HTML require CBSE 2015

Option a.) starting tag
Option b.) ending tag
Option c.) starting and ending tags
Option d.) None of the above
Answer

#Answer: c. In HTML, container elements are required as both starting and ending tags.





Question 5. HTML tags are

Option a.) in uppercase
Option b.) case sensitive
Option c.) in lowercase
Option d.) not case sensitive
Answer

#Answer: d. HTML tags are not case sensitive means we can write tags either in uppercase or lowercase.





Question 6. Which type of tags used by HTML?

Option a.) tags only for image
Option b.) user defined tags
Option c.) tags only for linking
Option d.) fixed tags defined by the language
Answer

#Answer: d. HTML provides predefined and fixed tags.





Question 7. Which program do you need to write HTML code?

Option a.) Spreadsheet
Option b.) Access
Option c.) Notepad
Option d.) None of these
Answer

#Answer: c. From the given options, Notepad is useful program to write HTML code.





Question 8. An example of HTML editor is

Option a.) Notepad
Option b.) Dreamweaver
Option c.) Microsoft Frontpage
Option d.) All of these
Answer

#Answer: d. HTML provides various text editors like Notepad, Dreamweaver etc.





Question 9. To create an HTML page, you need

Option a.) text editor
Option b.) Web browser
Option c.) Both a. and b.
Option d.) None of these
Answer

#Answer: c. Because text editor is required to write HTML code and Web browser is needed to display the page.





Question 10. Which of the following is the correct code of HTML page?


Option a.) <HTML>
<TITLE> Hello
</TITLE>
</HTML>

Option b.) <HTML>
<HEAD>
<TITLE> Hello
</TITLE>
</HEAD>
</HTML>

Option c.) <HTML>
<BODY> Hello
</HTML>

Option d.) <HTML><HEAD> Hello
<BODY>
</HTML>
Answer

#Answer: b. Because <TITLE> tag must close inside the <HEAD> tag.





Question 11. Tags and text that do not display directly on the page afe placed in

Option a.) body
Option b.) table
Option c.) head
Option d.) title
Answer

#Answer: c. Information in <HEAD> tag is not displayed directly in Web page. It is used to identify the matter (tags) used in a Web page.





Question 12. A Web page normally consists of

Option a.) head and body
Option b.) top and bottom
Option c.) body and font
Option d.) body and title
Answer

#Answer: a. From the given options, a Web page normally consists of head and body.





Question 13. Which section is used for text and tags that are shown directly on your Web pages?

Option a.) Meta
Option b.) Head
Option c.) Body
Option d.) Table
Answer

#Answer: c. Information in <BODY> tag is directly displayed on Web pages.





Question 14. Where do you place the <TITLE> tag in a HTML?

Option a.) BODY
Option b.) HEAD
Option c.) TITLE
Option d.) FONT

Answer

#Answer: b. <TITLE> tag is placed in the <HEAD> tag.





Question 15. Which attribute is not supported by a <BODY> tag? CBSE 2013

Option a.) bgcolor
Option b.) size
Option c.) text
Option d.) link
Answer

#Answer: b. size is not an attribute of <BODY> tag.





Question 16. What will happen if the background image is smaller than the browser’s window?

Option a.) It will leave a blank space at the bottom of your page
Option b.) It will be repeated
Option c.) It will be stretched
Option d.) It will not be displayed
Answer

#Answer: b. When the background image is smaller than the browser’s window then it will be shown in boxes in repeated pattern.





Question 17. Why should you specify a background color, if you are using an image for the actual background of your page?

Option a.) So the text shows up better
Option b.) The background color will be shown until the image loads
Option c.) In case the image does not fit right
Option d.) None of the above
Answer

#Answer: b. We have to use background color because if in any case image is not displayed then atleast background color will be shown on that place.





Question 18. Which attribute of <BODY> tag specifies the color of visited links in a document?

Option a.) vlink
Option b.) alink
Option c.) link
Option d.) None of these
Answer

#Answer: a. vlink attribute specifies the color of visited links in a HTML document.





Question 19. Choose the correct HTML tag for the largest heading.

Option a.) <H2>
Option b.) <H4>
Option c.) <H6>
Option d.) <H1>
Answer

#Answer:d. <H1> tag provides the largest heading in HTML.





Question 20. Which of the following will give smallest size of the text? CBSE 2014

Option a.) <H3>
Option b.) <H6>
Option c.) <H2>
Option d.) <H4>
Answer

#Answer: b. From the given options, <H6> tag displays the smallest size of heading text.





Question 21. In a Web page, you can place

Option a.) 2 levels of headings
Option b.) 6 levels of headings
Option c.) 4 levels of headings
Option d.) 7 levels of headings
Answer

#Answer: b. Web page provides six levels of headings.





Question 22. The default alignment for paragraph is

Option a.) left
Option b.) right
Option c.) center
Option d.) justified
Answer

#Answer: a. The align attribute of <P> tag provides various alignments like left, right, center and justify. But by default, its alignment is left.





Question 23. Which of the following HTML container tags do you apply to text for formatting the text as a paragraph?

Option a.) <PARAGRAPH> ……. c/PARAGRAPH>
Option b.) <PARA> ………. </PARA>
Option c.) <P> ……… </P>
Option d.) None of the above
Answer

#Answer: c. <P>…….</P> is a container tag, which is used for formatting text.





Question 24. Which of the following is not a container element? CBSE 2013

Option a.) P
Option b.) B
Option c.) OL
Option d.) HR
Answer

#Answer: d. HR is an empty tag because it has no closing tag.





Question 25. The style element holds the document for setting

Option a.) font, color and alignment
Option b.) font, color, alignment and border
Option c.) color, alignment and border
Option d.) None of the above
Answer

#Answer: b. Because they are used to give a better look and feel to the Web documents.





Question 26. The tags used for specifying the style in HTML are
(i) <B> (ii) <I> (iii) <M> (iv) <L>
Choose the correct one

Option a.) (i) and (ii)
Option b.) (i) and (iii)
Option c.) (ii) and (iv)
Option d.) (i), (ii) and (iii)
Answer

#Answer: a. Because these two tags are text formatting/styling tags.





Question 27. Which of the following tag is used to make a list that lists the items with numbers?

Option a.) <DL>
Option b.) <UL>
Option c.) <OL>
Option d.) None of these
Answer

#Answer: c. <OL> is the ordered list that starts with a number like 1, A, a, i and I etc.





Question 28. Which of the following is not HTML list? CBSE 2013

Option a.) Ordered
Option b.) Unordered
Option c.) Definition
Option d.) Detailed
Answer

#Answer: d. Detailed list is not a type of HTML list.





Question 29. In an unordered list, it is necessary to enclose each item in CBSE 2013

Option a.) <LI> tag
Option b.) <UL> tag
Option c.) <I> tag
Option d.) <OL> tag
Answer

#Answer: a. Each item must be enclosed in <LI> tag either in ordered list or unordered list.





Question 30. Which option do you have while making bulleted lists?

Option a.) Disc, circle, square
Option b.) Square, polygon
Option c.) Disc, circle, rectangle
Option d.) Disc, oval, polygon
Answer

#Answer: a. Bulleted list provides various values like disc, circle and square.





Question 31. Which one of the following list type that will create a bulleted list? CBSE 2014

Option a.) Unordered
Option b.) Ordered
Option c.) Definition
Option d.) All of these
Answer

#Answer: a. Unordered list provides various types of bullets like square, disc and circle.





Question 32. Which of the following will produce a solid circle bullet when given as value of type with <UL>?

Option a.) Circle
Option b.) Disc
Option c.) Square
Option d.) Rectangle
Answer

#Answer: b. A solid circle bullet use the type disc.





Question 33. To create a square bulleted list, use

Option a.) <UL type="circle">
Option b.) <OL type= "square">
Option c.) <ULtype="square">
Option d.) <UL start= "square">
Answer

#Answer: c. Square bulleted list is the part of unordered list.





Question 34. In an ordered list, each item cannot be preceded with CBSE 2013

Option a.) Counting numbers
Option b.) Arabic numbers
Option c.) Roman numerals
Option d.) Bullets
Answer

#Answer: d. In unordered list, bullets are used while counting numbers, arabic numbers and roman numbers are used in an ordered list.





Question 35. To create a numbered list with A, B, … use

Option a.) <OL type="A">
Option b.) <OL start="A">
Option c.) <OL begin="A">
Option d.) <OL starts="a">
Answer

#Answer: a. The given list uses the uppercase letter for each item so, the correct syntax is <OL type="A">





Question 36. To start a list with number 3, we should write CBSE 2015

Option a.) <OL start="3″>
Option b.) <OLtype="3″>
Option c.) <OL value="3″>
Option d.) All of these
Answer

#Answer: a. The correct syntax for start a list with number 3 is <OL start = "3">.





Question 37. To start a list using circles, use

Option a.) <UL type="round">
Option b.) <OL start="l">
Option c.) <UL ="circle">
Option d.) <UL type ="circle">
Answer

#Answer: d. Because circular list starts with unordered list type circle.





Question 38. To start a numbered list with regular numerals, use

Option a.) <OL type="A">
Option b.) <OL type="r">
Option c.) <OL type="r">
Option d.) <OL type="u">
Answer

#Answer: b. Because regular numbering is the natural numbers starting from 1, 2, 3, … etc.





Question 39. If you want to make a list of items in the form of terms and their descriptions, then you can create a …………. list.

Option a.) ordered
Option b.) unordered
Option c.) definition
Option d.) nested
Answer

#Answer: c. A definition list is a list of items, with a description of each item.





HTML Class 10 Fill in the Blanks [1 Mark each]
Question 1. HTML is a subset of ……… .
Answer

#Answer: SGML





Question 2. An element that only has a starting tag and no ending tag is ………….. element.
Answer

#Answer: empty tag





Question 3. The tag that requires a opening as well as closing tag is called ………. .
Answer

#Answer: container tag





Question 4. The attribute topmargin sets a margin alongwith the top of your ………… element.
Answer

#Answer: BODY





Question 5. ………. attribute of BODY tag helps to set background color.
Answer

#Answer: bgcolor





Question 6. The ………… tag is used to define basic font size for the HTML page.
Answer

#Answer: <BASEFONT>




Question 7. The ……….. tag is used to make the Web browser ignore anything that the tag contains.
Answer

#Answer: <!–…..–>





Question 8. ……….. tag is used to bring the text to new line. CBSE 2014
Answer

#Answer: <BR>





Question 9. HR tag is used for ……….. CBSE 2014
Answer

#Answer: horizontal line





Question 10. …….. and ……… tags break the line flow.
Answer

#Answer: <BR>, <HR>





Question 11. ………… attribute of <HR> tag specifies the width of a horizontal line.
Answer

#Answer: width





Question 12. ……… tag is used to make the text bold.
Answer

#Answer: <B>





Question 13. <LI> tag is an ………… element tag.
Answer

#Answer: empty





Question 14. To display the text in italics, ………. tag is used and to display in type writer font, ……… tag is used. CBSE 2013
Answer

#Answer: <I>, <TT>





Question 15. ………… tag is used to underline the text.
Answer

#Answer: <U>





Question 16. …………. tag creates a bulleted list. CBSE 2015
Answer

#Answer: <UL>





Question 17. noshade is an attribute of …………. tag.
Answer

#Answer: <HR>





Question 18. The unordered list starts with ………….. tag.
Answer

#Answer: <UL>





Question 19. ……..value of type attribute displays a hollow circle for an unordered lists.
Answer

#Answer: Circle





Question 20. If you want to display uppercase alphabets instead of numbers, ………… ordered type should you use.
Answer

#Answer: A





HTML Class 10 True or False [1 Mark each]
Question 1. HTML is a case sensitive Web language.
Answer

#Answer: False No, you can write your text in both uppercase and lowercase.





Question 2. HTML is a programming language CBSE 2015
Answer

#Answer: False Because it is a markup language.





Question 3. <Head> tag is used to define document body.
Answer

#Answer: False <HEAD> tag is used to define the document head.





Question 4. <TITLE> tag is one of the structural tags of HTML document. CBSE 2015
Answer

#Answer: True HTML provides four structural tags, these are as follows:




<HTML>, <HEAD>, <TITLE>, <BODY>.

Question 5. There should be only one <BODY> tag in each Web page. CBSE 2014
Answer

#Answer: True A Web page contains necessarily one <HEAD> tag and one <BODY> tag.





Question 6. All HTML document contains only <BODY> tag.
Answer

#Answer: False All HTML document contains various tags.





Question 7. bgcolor is an attribute of <FONT> tag.
Answer

#Answer: False It is an attribute of <BODY> tag.





Question 8. background attribute is used to display image.
Answer

#Answer: True It is an attribute of <BODY> tag used to display background image.





Question 9. topmargin is used to specify the distance between the top of the document and top of the browser window.
Answer

#Answer: True topmargin is an attribute of <BODY> tag, which is used to specify the distance between the top of the document and top of the browser window.





Question 10. color is an attribute of <FONT> tag.
Answer

#Answer: True It defines color of the text.





Inserting Images and Links in HTML MCQ Questions
Question 1. Web browsers display images in the following format

Option a.) XBM
Option b.) JPEG
Option c.) GIF
Option d.) All of these
Answer

#Answer: d. All of these





Question 2. Which tag is used to insert an image in Web page?

Option a.) <a>
Option b.) <table>
Option c.) <img>
Option d.) <p>
Answer

#Answer: c. <img> tag is used to insert inline image in a Web page.





Question 3. The correct HTML code for inserting an image is CBSE 2012

Option a.) <img href="image.gif">
Option b.) <img> image.gif</gif>
Option c.) <img src = "image.gif">
Option d.) <image src = "image.gif" >
Answer

#Answer: c. <img src="image.gif ">





Question 4. src attribute used with <img> tag stands for CBSE 2013

Option a.) screen b. screen resolution count
Option c.) source d. structure
Answer

#Answer: c. source





Question 5. …………. attribute is used to specify the location of an image file.

Option a.) alt
Option b.) src
Option c.) align
Option d.) name
Answer

#Answer: b. src attribute is used to specify the location of an image file.





Question 6. The text specified in the alt attribute is displayed as tooltip in

Option a.) Internet Explorer
Option b.) Google Chrome
Option c.) Both a. and b.
Option d.) None of these
Answer

#Answer: a. The text specified in alt attribute is displayed as tooltip in Internet Explorer only.





Question 7. The alternate text of an image can be displayed by using attribute of the <img> tag.

Option a.) src b. alt
Option c.) align d. None of these
Answer

#Answer: b. alt attribute of the <img> tag is used to display the alternate text of an image.





Question 8. alt attribute allows CBSE 2016

Option a.) addition of an alternate hyperlink
Option b.) addition of a border to image
Option c.) use of an alternative image in place of the specified image
Option d.) addition of alternative text about an image
Answer

#Answer: d. alt attribute allows addition of alternative text about an image.





Question 9. The default alignment of images, that are inserted in Web page, is

Option a.) left
Option b.) right
Option c.) inline with text
Option d.) middle
Answer

#Answer: c. An image which is inserted in Web page by default placed inline with text.





Question 10. Which is not a valid value in the align attribute of <img> tag? CBSE 2014,2013

Option a.) top
Option b.) center
Option c.) bottom
Option d.) right
Answer

#Answer: b. center is not a valid value in the align attribute of <img> tag. To align in center, <center> tag can be used.





Question 11. Why is it important to specify width and height attribute in <img> tag? CBSE 2013

Option a.) To ensure that image is not copied
Option b.) The image will not render without these
Option c.) To stop the image from loading
Option d.) Helps the browser to load the Web page faster
Answer

#Answer: d. Helps the browser to load the Web page faster.





Question 12. When creating a Web document, which unit is used to express an image’s height and width? CBSE 2013

Option a.) Centimetres
Option b.) Pixels
Option c.) Dots per inch
Option d.) Inches
Answer

#Answer: b. Image’s height and width unit are expressed in pixels or in per cent form.





Question 13. The <a> tag is

Option a.) a container tag
Option b.) an empty tag
Option c.) a closing tag
Option d.) None of these
Answer

#Answer: a. <a> is a container tag, which requires starting as well as matching ending tag.





Question 14. ………… is the default color of a hyperlink.

Option a.) Red
Option b.) Blue
Option c.) Green
Option d.) Black
Answer

#Answer: b. Blue





Question 15. The tag used in HTML to link a Web page with other Web page is CBSE 2013

Option a.) <a> b. <h> c. <u> d. <l>
Answer

#Answer: a. <a> anchor tag is used to create links.





Question 16. Which tag tells, where a link starts? CBSE 2014

Option a.) <1> b. <start>
Option c.) <a> d. None of these
Answer

#Answer: c. <a> tag specify that a link starts, in which, href create a hyperlink.





Question 17. Which command should be use to link a page with HTML page? CBSE 2013

Option a.) <a link = "page.htm" > </a>
Option b.) <a href = "page.htm">page</a>
Option c.) <a connect = "page.htm"></a>
Option d.) <a attach = "page.htm"></a>
Answer

#Answer: b. <a href="page.htm">page</a>





Question 18. With which code you .can make an image works as link? CBSE 2016

Option a.) <a href = "URL">Text</a>
Option b.) "<a href="ABC.html"><img src ="graphic.gif">Click Here</a>
Option c.) <a ref=mailto:<img src = graphic.gif>Click Here</a>
Option d.) None of the above
Answer

#Answer: b. With <a href="ABC.html"><img src= "graphic.gif >Click Here</a> image works as link.





Question 19. To create a hyperlinked image

Option a.) the image tag should be within anchor tag
Option b.) the anchor tag should be within image tag
Option c.) the image tag should be before the anchor tag
Option d.) the image tag should be after the anchor tag
Answer

#Answer: a. The image tag should be within anchor tag to create hyperlinked image.





Question 20. For internal linking, the section names are provided by attribute of <a> tag.

Option a.) title
Option b.) href
Option c.) name
Option d.) None of these
Answer

#Answer: c. For internal linking, section names are provided by name attribute.





Question 21. Is it possible to link within the current page?

Option a.) No
Option b.) Only in framesets
Option c.) Yes
Option d.) None of these
Answer

#Answer: c. Yes, it is possible to link within the current page, which is called internal linking.





Question 22. ………. attribute of the <a> tag is used to name a section in a Web page to create an internal link.

Option a.) href
Option b.) name
Option c.) align
Option d.) link
Answer

#Answer: b. name attribute is used to create an internal link.





Question 23. …………….. attribute is used to set the color of a link while it is active.

Option a.) vlink
Option b.) alink
Option c.) Both

Option a.) and b.
Option d.) None of these
Answer

#Answer: b. alink attribute is used to set the color of link while it is active.





Question 24. The attribute which is used to send E-mails through a Website.

Option a.) tomail
Option b.) mailto
Option c.) Both

Option a.) and b.
Option d.) None of these
Answer

#Answer: b. mailto attribute is used to send E-mails through a Website.





Question 25. Choose the correct syntax to create an E-mail link. CBSE 2014

Option a.) <a href = "abc@xyz.com">
Option b.) <a href = "mailto:abc@xyz.com">
Option c.) email = "abc@xyz.com">
Option d.) <amail = "abc@xyz.com">
Answer

#Answer: b. <a href = "mailto:abc@xyz.com">





Question 26. To display (X+Y)2, correct HTML code is CBSE 2013

Option a.) <sub>(X+Y)2</sub>
Option b.) X+Y< sup > 2 </sup >
Option c.) (X+Y)<sup>2</sup>
Option d.) <sup>(X +Y)2</sup>
Answer

#Answer: c. (X+Y) <sup>2</sup> code is correct because superscript have to be placed in between <sup> and </sup> tags.





Inserting Images and Links in HTML Fill in the Blanks [1 Mark each]
Question 1. The <img> tag is an ………… tag, that means it has no closing tag.
Answer

#Answer: empty





Question 2. <img> tag is used for …………. images. CBSE 2014
Answer

#Answer: displaying





Question 3. …………… tag is used to create inline images. CBSE 2013, 2012
Answer

#Answer: <img>





Question 4. ……………. is an attribute of the <img> tag which specifies the location or URL of the image to be displayed.
Answer

#Answer: src





Question 5. An attribute is an extra piece of information associated with a …………….
Answer

#Answer: tag





Question 6. The ait attribute provides …………… for an image.
Answer

#Answer: alternative information





Question 7. The value for alt attribute is a text string of upto ………….. characters.
Answer

#Answer: 1024





Question 8. An image to be displayed in a Web page has to cover 25% of the browser window horizontally and 50% vertically. The attributes ………… and ………….of the <img> tag would be used for achieving this.
Answer

#Answer: height, width





Question 9. attribute is used to give border to an image. CBSE 2016
Answer

#Answer: border





Question 10. ………… is a word or image that when clicked take us to another Web page. CBSE 2013
Answer

#Answer: Hyperlink





Question 11. ………… tag is used to connect Web pages. CBSE 2014
Answer

#Answer: <a>





Question 12. ……. are used to connect Web pages. They are created with <a> tag. CBSE 2016
Answer

#Answer: Hyperlinks





Question 13. The …………. tag is considered to establish a hypertext relationship between the current document and another URL.
Answer

#Answer: <a>





Question 14. The ………….. attribute is used for specifying the URL of the anchor tag.
Answer

#Answer: href





Question 15. An ……….. link allows a link to another Web page or another Website. CBSE 2011
Answer

#Answer: external





Question 16. The …………….. attribute of <a> tag is used to provide information or a title for the linked document or Web page.
Answer

#Answer: title





Question 17. An link allows a link to another section on the same or different Web page.
Answer

#Answer: internal





Question 18. A visited link on a Website is generally underlined and …………… in color.
Answer

#Ans. purple





Question 19. The default color of alink attribute is ………… .
Answer

#Answer: red





Question 20. ………… is used to change the color of a visited link. CBSE 2016
Answer

#Ans. vlink





Question 21. Using the ………… type URL, you can create the E-mail hyperlink.
Answer

#Answer: mailto





Question 22. The tag ……….. is used to create superscripts and …………. tag is used to create subscripts on a Web page.
Answer

#Answer: <sup>, <sub>





Inserting Images and Links in HTML True or False [1 Mark each]
Question 1. You can have inserted an image in your Web page which is physically present in your computer.
Answer

#Answer: True With the help of <img src="image URL">, we can insert an image in Web page which is present in our computer.





Question 2. If the image you are loading in the Web page is not available, then you want a text to appear in the image placeholder, text attribute lets you define this text.
Answer

#Answer: False The alt attribute is used to define text to appear in the image placeholder, if image is not visible for any reason.





Question 3. No value is specified with alt attribute of <img> tag. CBSE 2012
Answer

#Answer: False alt attribute provides alternate text for an image if the image is not visible on Web page for any reason.





Question 4. String as a value of alt attribute must be enclosed in quotation marks.
Answer

#Answer: True alt attribute contains string which must be enclosed in quotation marks.





Question 5. The general syntax for inline image is <img src = "file name" >.
Answer

#Answer: True At the place of file name, path of the image is specified. If the image is in the same folder as HTML file, it is not needed to specify full path of an image.





Question 6. The default alignment of image is right. CBSE 2014
Answer

#Answer: False There is no default alignment of image with respect to text in HTML.





Question 7. It is not important to specify an integer value as the width of the border of an image.
Answer

#Answer: False Width takes an integer values that are in pixels.





Question 8. The align attribute of the <img> tag is used to specify the text that is to be displayed in case the browser that does not support graphics.
Answer

#Answer: False alt attribute is used to specify the text that is to be displayed in case the browser which does not support graphics.





Question 9. We can put a border around an image by using width attribute. CBSE 2013
Answer

#Answer: False We can put a border around an image by using border attribute.





Question 10. border is an attribute of <a> tag. CBSE 2012
Answer

#Answer: False border is an attribute of <img> tag.





Question 11. The <a> tag is called the align tag. CBSE 2011
Answer

#Answer: False The <a> tag is called anchor tag.





Question 12. The anchor tag <a> signals the beginning of the text.
Answer

#Answer: False Anchor tag is used to create hyperlinks not text.





Question 13. The color of the hyperlinks in an HTML document can be changed.
Answer

#Answer: True We can change the color of hyperlinks in HTML document.





Question 14. Hyperlinks can also be created for links within the same document. Linking within the same document is called external linking.
Answer

#Answer: False Linking within the same document is called internal linking.





Question 15. It is not possible to create link within current document. CBSE 2012
Answer

#Answer: False You can link various sections of the current document together, which is called internal linking.





Question 16. The name attribute of the <a> tag allows the user to create links within the same document. CBSE 2011
Answer

#Answer: True Because name attribute defines a name of a section in a document.





Question 17. You should include a mailto function in the body of your document to allow user to respond to your Web page.
Answer

#Answer: True The mailto function is used to send E-mails from the Website.





Option c.) <th>
Option d.)<table>
Answer

#Answer:b.The <td> tag is used to specify the individual table data in a table.




Click the button to see more MCQ

error: Content is protected !!