Web
Web
2-Which of the following tag is used for inserting the largest heading in HTML?
a) head
b) <h1>
c) <h6>
d) heading
6-Which of the following is not the element associated with the HTML table layout?
a) alignment
b) color
c) size
d) spanning
11- Which of the following HTML code will make an image clickable?
a)
b)
<img src="https://www.sanfoundry.com/sanfoundry-logo">
<a href="https://www.sanfoundry.com/">Home Page</a>
</img>
c)
d)
13- Which attribute is used to create a link that opens in a new window tab?
a) src=” _blank”
b) alt=” _blank”
c) target=” _self”
d) target=” _blank”
17- Which of the following HTML tag is used to add a row in a table?
a) <th>
b) <td>
c) <tr>
d) <tt>
18- What is the work of <address> element?
a) contains IP address
b) contains home address
c) contains url
d) contains contact details for author
19- Which of the following tag is used to create a text area in HTML Form?
a) <textarea> </textarea>
b) <text></text>
c) <input type=”text” />
d) <input type=” textarea” />
b)
c)
d)
<a>https://www.sanfoundry.com/</a>
27- Which HTML tag is used to convert the plain text into italic format?
a) <b>
b) <p>
c) <i>
d) <a>
49-Which of the following is not the element associated with HTML table layout?
a) size
b) spanning
c) alignment
d) color
55-What is the path for an image located in same folder as the current page?
<html>
<head> <title>JavaScript </head>
<body bgcolor=""#0000ff"">
<script language=""JavaScript"">
<!-- document.write(""<h1> hello world </h1>""); //-->
</script>
</body>
</html>
When the above web page is loaded into a browser, what will happen?
a.) The body of the web page will not contain any text
b.) The body of the web page will contain the text "hello world"• as an H1 heading
c.) The background color of the web page will be green
d.) document. write("<h1> hello world </h1 >"•); is a comment.
Which property does one use to align text to the right side of a block-level element in
Cascading Style Sheets?
a.) horizontal-align
b.) align
c.) block-align
d.) text-align
The href attribute in the link tag specifies the:
a.) Destination of a link
b.) Link
c.) Hypertext
d.) None of the above
What is cell padding?
a.) Used to separate cell walls from their contents
b.) Used to set space between cells
c.) Both a and b above
d.) Used to provide width to a cell
81-Which of the following elements in HTML5 defines video or movie content?
a) <video>
b) <movie>
c) <audio>
d) <media>
b)
<img src="https://www.sanfoundry.com/sanfoundry-logo">
<a href="https://www.sanfoundry.com/">Home Page</a>
</img>
c)
d)
84. Which of the following HTML tag is used to add a row in a table?
a) <th>
b) <td>
c) <tr>
d) <tt>
85. Which tag is used to create a dropdown in HTML Form?
a) <input>
b) <select>
c) <text>
d) <textarea.
<a>https://www.sanfoundry.com/</a>
•
88-If you write the following line of code in HTML, what would you see on your final
page?
o A.
o B.
o C.
o D.
o A.
o B.
o C.
o D.
o A.
Title
o B.
Form
o C.
Header
o D.
Body
91-Text within EM tag is displayed as ________
o A.
Bold
o B.
Italic
o C.
List
o D.
Indented
o A.
Bold
o B.
Italic
o C.
List
o D.
Indented
93-UL Tag is used to ________
o A.
o B.
o C.
o D.
o A.
OL
o B.
DL
o C.
UL
o D.
LI
•
95-Using P tag will
o A.
o B.
o C.
o D.
o A.
Table heading
o B.
Table Records
o C.
Table row
o D.
•
97-Which is true to change the text color to red?
o A.
BODY BGCOLOR=RED
o B.
BODY TEXT=RED
o C.
BODY COLOR=RED
o D.
o A.
Tags
o B.
Angle brackets
o C.
o D.
Forward slash
•
99-Code used with < > to tell the computer you are using HTML
o A.
TITLE
o B.
HTML
o C.
BODY
o D.
HEAD
100-Code used with < > to tell the computer you have stopped using HTML
o A.
/TITLE
o B.
/BODY
o C.
/HEAD
o D.
/HTML
•
101-These two codes are important, without them, your page would be
completely blank
o A.
o B.
o C.
o D.
102-To display the title on the title bar, use this code
o A.
TITLE
o B.
HTML
o C.
/HEAD
o D.
BODY
•
103-Program used to tye in the HTML codes
o A.
Browser
o B.
Text editor
C. Internet Explore
o D.
Source
o A.
Browser
o B.
Notepad
o C.
Text editor
o D.
Source
•
105-Tags used to add secret notes in HTML
o A.
Comment
o B.
Heading
o C.
Paragraph
o D.
Body
o A.
Body
o B.
Comment
o C.
Heading
o D.
Paragraph
•
107-"<h1></h1>, <h2></h2>, <h3></h3>"
o A.
Heading
o B.
Comment
o C.
Body
o D.
Paragraph
108-"<p>and</p>"
o A.
Comment
o B.
Source
o C.
Paragraph
o D.
Body
109-"<body> and </body> "
A. Commen.
o B.
Paragraph
o C.
Body
o D.
Heading
110-"<img src=filename>"
o A.
Hyperlink
o B.
Picture
o C.
Bullet list
o D.
Number list
•
111-"<a href=filename/website> text </a> "
o A.
Hyperlink
o B.
Picture
o C.
Bullet list
o D.
Number list