is a standard for specifying a document markup language or tag set.
19. Which character is used to represent when a tag is closed in HTML?
a) #
b) !
c) /
d) \
View Answer
Answer: c
Explanation: The forward-slash (/) is used to indicate the closure of a tag within HTML.
20. Which of the following HTML code will make an image clickable?
a)
Sanfoundry Home Page
b)
Sanfoundry Home Page
c)
Sanfoundry Home Page
d)
href="https://www.sanfoundry.com/">
src="https://www.sanfoundry.com/sanfoundry-logo" />
View Answer
Answer: d
Explanation:
tag defines a hyperlink, which is used to link from one page to another
page. Suppose if we want an image to be clickable then it should go inside Tag.
21. Among the following, which is the HTML paragraph tag?
a)
b)
c)
d)
View Answer
Answer: a
Explanation:
tag is used for paragraph in HTML.
22. In HTML, 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”
View Answer
Answer: d
Explanation: Add the target=”_blank” attribute in the Anchor tag. target=”_blank” attribute
makes a link open in a new window tab.
23. Which HTML element is used for short quote?
a)
b)
c)
d)
View Answer
Answer: c
Explanation: element indicates emphasis, browser will show the contents of
element in italic. A section which is quoted from another source is specified by
. The defines abbreviation. We used element for shorter quote.
Browser put quote around element.
This is a black dog
.
Output: This is a “black dog”.
24. Which of the following HTML tag is used to create an unordered list?
a)
b)
c) -
d)
View Answer
Answer: b
Explanation: tag is used to create the unordered list items in an HTML document. By
default, unordered list items will display in a bulleted format.
Different types of unordered list Attribute Values are:
Disc
Circle
Square
None
Syntax:
25. Which HTML element is used for abbreviation or acronym?
a)
b)
c)