HTML MCQ With Answers
HTML is an abbreviation for HyperText Markup Language. It is the standard go-to language to make web pages and is used to make the general structure of a website/webpage. HTML informs the web browser on how to display the content of the website when the user loads it. HTML consists of a series of elements, which label pieces of content as “heading”, “paragraph”, “link”, etc.
A standard HTML file is shown below:
<html> <head> <title>Title Page</title> </head> <body> <h1>Heading Line</h1> <p>Paragraph Lines</p> </body> </html>
From the above code, the components of an HTML file document is as explained below:
- <!DOCTYPE html> acts as a declaration that this document is an HTML5 document.
- <html> element is the root element of the HTML page.
- <head> element contains metadata for the HTML page.
- <title> tag produces a title for the webpage we are currently rendering(our HTML page).
- <body> defines the body of the document, and is basically a container for all the contents which is visible in the HTML page like hyperlinks, headings, titles, paragraphs, etc.
- <h1> tag is basically a heading. The ‘1’ represents the size of the heading, 1 being the largest and 6 being the smallest.
- <p> tag basically defines a paragraph.
The general syntax for an HTML element is defined by a start tag, an end tag, and some content enclosed within it. For some HTML elements, the end tag is not needed.
- HTML Cheat Sheet
- HTML Interview Questions
- HTML Features
- HTML IDE
- HTML Books
- HTML vs XML
- HTML vs HTML5
- HTML vs XHTML
- HTML vs CSS
What does the abbreviation HTML stand for?
How many sizes of headers are available in HTML by default?
What is the smallest header in HTML by default?
What are the types of lists available in HTML?
How to create an ordered list in HTML?
HTML files are saved by default with the extension?
What is the effect of the <b> tag?
Which of the following is correct about HTML?
How to display preformatted text in HTML?
What is meant by an empty tag in HTML?
What are the attributes used to change the size of an image?
Which attribute is used to provide a unique name to an HTML element?
What is the function of the HTML style attribute?
Which of the following is the correct syntax for using the HTML style attribute?
Which HTML element is used to define description data?
Which of the following properties is used to change the font of text?
How are quotations defined in HTML?
What tag is used to render an image on a webpage?
Apart from <i> tag, which of the following tag is used to render a text in italics?
What is the correct syntax to write an HTML comment?
Colors are defined in HTML using?
Which property is used to set colors in HTML?
What are the types of unordered lists in HTML?
Which property is used to set border colors in HTML?
Which of the following things are necessary to create an HTML page?
Which HTML tag is called the root element of an HTML document?
How is black color represented in terms of RGB values?
What does the Alpha value in RGBA represent?
What does the Alpha value of 0.0 represent?
How to set a font for a whole page?
The CSS inside HTML elements used alongside style attribute is called?
Which of the following colors contain equal amounts of RBG?
Which property allows an image link to show a text label?
If a background image is smaller than the screen on which it is being displayed, what will occur on the webpage?
What are the properties of block-level elements?
Which of the following are examples of block-level elements in HTML?
How many characters can be written in 1KB?
What are some valid character sets available?
The default value of the BORDER attribute is?
What are those objects called which are used for storing data on the client provided by the HTML local storage?
The most basic part of any HTML page is?
What is the select tag used for?
What are the main components of the front end of any working website?