FSD HTML
FSD HTML
1. What is HTML?
a) HTML describes the structure of a webpage
b) HTML is the standard markup language mainly used to create web pages
c) HTML consists of a set of elements that helps the browser how to view the content
d) All of the mentioned
Answer: d
Explanation: HTML is the standard markup language mainly used to create web pages.
HTML describes the structure and layout of a webpage. HTML consists of a series of
elements that helps the browser how to display content easily.
Answer: b
Explanation: Timothy John Berners-Lee (TimBL) is known as the father of HTML. He is a
British computer scientist, best known as the inventor of the World Wide Web.
5. Which of the following is used to read an HTML page and render it?
a) Web server
b) Web network
c) Web browser
d) Web matrix
Answer: c
Explanation: A web browser (commonly referred to as a browser) is a software application
for retrieving, presenting and traversing information resources on the World Wide Web. A
web server process, store and display output to the client as per their request. Web matrix
is a discontinued cloud-connected website builder and HTML editor for Windows.
7. Which of the following tag is used for inserting the largest heading in HTML?
a) head
b) <h1>
c) <h6>
d) heading
Answer: b
Explanation: Headings in HTML starts from <h1> to <h6> in which <h1> heading is the
largest one and <h6> is smallest one among those. The heading tags are <h1> <h2>
<h3> <h4> <h5> and <h6> that are used for the creations of headings.
Answer: d
Explanation: The Document Object Model is a cross-platform and language-independent
application programming interface that treats an HTML, XHTML, or XML document as a
tree structure. A document can be viewed as a logical tree with help of DOM Model.
Answer: a
Explanation: Metadata is information about data. The meta tag provides metadata/meta
information about the HTML document. Metadata will not be displayed on the page.
Metadata is present in head. The body tag defines document’s body. A title tag is an
HTML element which specifies the title of a web page.
Answer: b
Explanation: The <mark> element is used to highlight a section of text. It is useful for
quoting a text or if one wants to bring attention to the text. The <b> tag is used to make
text/paragraph bold. <u> tag is used to underline the text you wanted.
Answer: b
Explanation: Browser ignores comment in a code. There are always two types of
command i.e. single line command and multiple line command. If one wants to add a
comment in code, add the text between these characters <!…..comment….>. It will not
visible in the user’s browser.
13. Which of the following elements in HTML5 defines video or movie content?
a) <video>
b) <movie>
c) <audio>
d) <media>
Answer: a
Explanation: The media to which linked document is optimized is given by <media> tag.
Before HTML5, videos could only be played with a plug-in (like flash). The HTML5 video
element specifies a standard way to embed a video in a webpage. As like <video>
elements, <audio> element contains additional files or streams like music, recording,
etc.
14. Which of the following is not the element associated with the HTML table layout?
a) alignment
b) color
c) size
d) spanning
Answer: b
Explanation: There are three elements in HTML table layout i.e. size, spanning and
alignment. Layout type can be achieved by setting Rows elements layout attribute to
Fixed or Auto. Auto attribute relies on browser compatibility whereas fixed layout relies
on developer specification.
16. Which HTML tag is used for making character appearance bold?
a) <u>content</u>
b) <b>content</b>
c) <br>content</br>
d) <i>content</i>
Answer: b
Explanation: By enclosing words in the tags <b>and</b> we can make characters
appear bold. <i> element is for content in italics, <u> is for underlined content, <br> is
for vertical breaking.
Answer: c
Explanation: In HTML, <img> tag is used to insert an image in HTML page. Image tag has
two attributes (src and Alt).
–> Src attribute is used to specify the image path.
–> Alt attribute is used to specify the alternate text for the image.
Answer: b
Explanation: HTML is a subset of SGML. SGML (Standard Generalized Markup Language)
is a standard for specifying a document markup language or tag set.
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) <a href="https://www.sanfoundry.com/">Sanfoundry Home Page</a>
b)<img src="https://www.sanfoundry.com/sanfoundry-logo"><a
href="https://www.sanfoundry.com/">Sanfoundry Home Page</a></img>
d)<a href="https://www.sanfoundry.com/"><img
src="https://www.sanfoundry.com/sanfoundry-logo" /></a>
Answer: d
Explanation: <a> tag defines a hyperlink, which is used to link from one page to another
21. Among the following, which is the HTML paragraph tag?
a) <p>
b) <pre>
c) <hr>
d) <a>
Answer: a
Explanation: <p> 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”
Answer: d
Explanation: Add the target=”_blank” attribute in the Anchor tag. target=”_blank” attribute
makes a link open in a new window tab.
24. Which of the following HTML tag is used to create an unordered list?
a) <ol>
b) <ul>
c) <li>
d) <ll>
Answer: b
Explanation: <ul> 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: <ul> Unordered List Items </ul>
26. Which of the following HTML tag is used to add a row in a table?
a) <th>
b) <td>
c) <tr>
d) <tt>
Answer: c
Explanation: In HTML, <tr> tag is used to create a row in the table. <th> tag is used to
set the header cell of a table.
Output:
Sanfoundry
28. 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” />
Answer: a
Explanation: The text area tag (<textarea>) is used in a form to declare a text area
element. It allows the user to enter text in multiple rows.
37. Which HTML tag is used to convert the plain text into italic format?
a) <b>
b) <p>
c) <i>
d) <a>
Answer: c
Explanation: In HTML, <i> tag is used to convert the plain text into italic format.
38. What is the use of <hr/> tag in HTML?
a) For making content appearance italics
b) To create vertical rule between sections
c) To create a line break
d) To create horizontal rule between sections
Answer: d
Explanation: To create a break between themes-such as a change of topic in a book or a
new scene in a play-you can add a horizontal rule between sections using <hr/> tag
43. Which of the following is an HTML specification used to add more information to HTML
tags?
a) Modifydata
b) Minidata
c) Macrodata
d) Microdata
Answer: d
Explanation: The Microdata spec provides a standardized syntax for additional semantic
markup to your web pages to enhance the machine readability of your web pages. The
planning for distribution center operation is offered by minidata. Macrodata and Modifydata
are not any terms related to HTML5.
45. Which of the following HTML element is used for canvas graphics?
a) <css>
b) <paint>
c) <canvas>
d) <graphic>
Answer: c
Explanation: CSS i.e. Cascading Style Sheet is a scripting language. Canvas graphics are
introduced in HTML5. Element used for canvas graphics is <canvas>. The HTML canvas
element is used to draw graphics, on the fly, via scripting (usually JavaScript).