HyperText Markup Language (HTML) is a markup language that allows you to create web pages. It’s a markup language for designing web pages.HTML stands for Hypertext Markup Language and is a combination of the two.The link between web pages is defined as hypertext.
MCQ Multiple Choice Questions-
- Which of the following is true for HTML?
- a) HTML defines the webpage structure;
- b) HTML is a standard markup language mostly used to generate web pages;
- c) HTML is made up of a set of elements that instruct the browser on how to read the content; and
- d) HTML includes all of the above.
d is the answer.
Explaination-HTML is a standard markup language that is mostly used to construct web pages.The structure and layout of a webpage are described in HTML.HTML is made up of a set of elements that instruct the browser on how to display material.
2.Who is considered as the father of HTML’s ?
- a) Rasmus Lerdorf is considered as the father of HTML
- b) The father of HTML is Tim Berners-Lee
- c) Brendan Eich, is considered as the father of HTML
- d) The father of HTML is Sergey Brin,
b is the answer.
Explanation: Timothy John Berners-Lee (TimBL) is regarded as the “Father of HTML.” He is a computer scientist from the United Kingdom.
- What is the full form of HTML ?
- a) The full form of HTML is HyperText Markup Language
- b) The full form of HTML is HyperText Machine Language
- c) The full form of HTML is HyperText Marking Language
- d) The full form of HTML is HighText Marking Language
a is the answer
Explanation-
HTML stands for “HyperText Markup Language,” which means “HyperText Markup Language” in English. HTML is a widely used markup language for designing and developing online pages and applications.
4.Which of the following programmes reads and renders an HTML page?
Web matrix
- a) Web matrix
- b) Web matrix
- c) Web matrix
- d) Web matrix
Answer is c.
Explanation:
A web browser (also known as a browser) is a piece of software that allows you to retrieve, present, and navigate information resources on the Internet.According on the client’s request, a web server processes, stores, and displays output.The cloud-connected Web matrix is no longer available.
5- What is the DOM (Document Object Model) in HTML?
- a) Language-dependent application programming
- b) ASP.NET object hierarchy
- c) Application programming interface
- d) HTML document object representation and interaction convention
d is the answer.
Explanation: The Document Object Model is a cross-platform, language-independent API that handles an HTML, XHTML, or XML document as a tree structure.With the help of the DOM Model, a document can be visualised as a logical tree.
- Which of the following is not an HTML table layout element?
- a) alignment,
- b) colour,
- c) size, and
- d) span
b is the answer
Explaination-Size, spanning, and alignment are the three factors that make up HTML table layout.Set the Rows element’s layout attribute to Fixed or Auto to obtain the desired layout type.The auto property is based on browser compatibility, whereas the fixed layout is determined by the developer.
- Which HTML5 element is used to style the layout?
- a) CSS
- b) jQuery
- c) JavaScript
- d) PHP
Answer: a
Justification: CSS (Cascading Style Sheet) is used to style HTML5. It’s a style sheet language that describes how content is presented, including layouts, colours, and fonts.The layout can be controlled using CSS.
- HTML is a subset of
View Answer
- a) SGMT
- b) SGML
- c) SGME
- d) XHTML
HTML is a subset of SGML, hence the answer is b.SGML (Standard Generalized Markup Language) is a document markup language or tag set specification standard.
9.What is the purpose of the HTML5 address> element?
- a) contains IP address
- b) contains home address
- c) provides url
- d) contains author contact
d is the answer.
Explain -The address> element specifies the contact information for a page’s author.Italics are frequently used in the content.
10-When a tag in HTML is closed, which character is used to represent it?
a) #
b)!
c)/
d)\
Answer: c
Explanation: In HTML, the forward-slash (/) is used to signal a tag’s closing.
11.What is the purpose of the HTML5 address> element?
- a) contains IP address
- b) contains home address
- c) provides url
- d) contains author contact information
d is the answer.
Explain -The address> element specifies the contact information for a page’s author.Italics are frequently used in the content.
- In HTML, which tag is used to make a numbered list?
a)<ol>
b)<ul>
c)<li>
d) <ll>
a is the answer
Explanation -In an HTML document, the element is used to construct numbered or sorted list items.The order of an ordered list might be numerical or alphabetical.Each list item is defined by a tag.Ordered List Items Syntax.
- In an HTML Form, which tag is used to create a dropdown menu?a) <input>
- b) <select>
- c) <text>
- d) <textarea>
b is the answer
In HTML Forms, the select> element is used to construct a drop-down list.It’s primarily used to get user feedback.Option tags are used within the select> element to define the drop-down list’s available options.
- When saving an HTML file, which of the following extensions is used?
a).hl,
b).h,
c).htl,
d).html
Answer: d
Explanation: HTML files are saved with the.html or.htm extensions.
- In HTML, which tag is used to create a blank line?
- a) <b>
- b) <br>
- c) <em>
- d) <a>
Answer-b
Explanation: The tag in HTML is used to produce a blank line.The bold text is specified using the tag.The highlighted text is defined by the tag.
- To convert plain text to italic format, which HTML tag is used?a) <b>
- b) <p>
- c) <i>
- d) <a>
Answer- c
Explanation: The tag is used in HTML to turn plain text into italic format.
- What is the purpose of the HTML hr/> tag?
- a) Italics are used to make material appear bold.
- b) To provide a vertical division between portions.
- c) To make a line break between sections
- d) To make a horizontal rule between sections
d is the answer.
Explanation: The hr/> tag can be used to add a horizontal rule between sections to make a break between themes, such as a change of topic in a book or a new scene in a play.
- Which element functions similarly to the b> element?
- a) <blockquote>
- b) <strong>
- c) <em>
- d) <i>
b is the answer
Explanation: The words printed inside strong> can be pronounced with a lot of force.The contents of the strong> element are bolded in the browser.
- Which of the following is an HTML specification for extending HTML tags with additional information?
- a) Modifydata
- b) Minidata
- c) Macrodata
- d) Microdata
Answer- d
Explanation:
The Microdata spec establishes a defined syntax for adding additional semantic markup to your web pages in order to improve machine readability.
20.For canvas graphics, which of the following HTML elements is used?
- a) <css>
- b) <paint>
- c) <canvas>
- d) <graphic>
c is the answer
CSS stands for Cascading Style Sheet and is a scripting language.HTML5 is the first browser to support canvas graphics.Canvas visuals are created with the canvas> element. Scripting is used to draw images on the fly using the HTML canvas element.