Explanation:HTML stands for Hyper Text Markup Language, the standard markup language for documents designed to be displayed in a web browser.
Incorrect! Try again.
2Which organization is responsible for standardizing HTML?
A.Google
B.Microsoft
C.W3C (World Wide Web Consortium)
D.Mozilla
Correct Answer: W3C (World Wide Web Consortium)
Explanation:The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web.
Incorrect! Try again.
3Which tag is considered the root element of an HTML document?
A.<body>
B.<head>
C.<html>
D.<root>
Correct Answer: <html>
Explanation:The <html> tag is the root element that defines the whole HTML document and contains all other elements.
Incorrect! Try again.
4What is the primary function of the <!DOCTYPE html> declaration?
A.To link CSS files
B.To tell the browser which version of HTML the page is using
C.To create a title for the page
D.To close the HTML document
Correct Answer: To tell the browser which version of HTML the page is using
Explanation:The DOCTYPE declaration instructs the web browser about the version of HTML the document is written in (HTML5 in this case).
Incorrect! Try again.
5Where should metadata, such as the page title and character set, be placed in an HTML document?
A.Inside the <body> tag
B.Inside the <head> tag
C.After the </html> tag
D.Inside the <footer> tag
Correct Answer: Inside the <head> tag
Explanation:The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag.
Incorrect! Try again.
6Which HTML tag is used to define the visible content of a web page?
A.<head>
B.<content>
C.<body>
D.<main>
Correct Answer: <body>
Explanation:The <body> tag defines the document's body and contains all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
Incorrect! Try again.
7How many levels of heading tags are available in HTML?
A.4
B.5
C.6
D.Unlimited
Correct Answer: 6
Explanation:HTML provides 6 levels of headings, ranging from <h1> (most important) to <h6> (least important).
Incorrect! Try again.
8Which tag represents the most important heading?
A.<h6>
B.<h1>
C.<head>
D.<header>
Correct Answer: <h1>
Explanation:<h1> defines the most important heading and usually displays the largest text size by default.
Incorrect! Try again.
9Which tag is used to define a paragraph?
A.<para>
B.<pg>
C.<p>
D.<text>
Correct Answer: <p>
Explanation:The <p> tag is the standard HTML element used to define a paragraph of text.
Incorrect! Try again.
10What is the correct tag to insert a line break without starting a new paragraph?
A.<lb>
B.<break>
C.<br>
D.<newline>
Correct Answer: <br>
Explanation:The <br> tag inserts a single line break. It is an empty (void) tag, meaning it has no closing tag.
Incorrect! Try again.
11What does the <hr> tag define in HTML5?
A.A horizontal ruler for decoration only
B.A thematic break in the content
C.A header row
D.A hidden reference
Correct Answer: A thematic break in the content
Explanation:In HTML5, the <hr> tag represents a thematic break between paragraph-level elements, typically displayed as a horizontal line.
Incorrect! Try again.
12Which of the following is an example of an unpaired (void) tag?
A.<p>
B.<h1>
C.<br>
D.<b>
Correct Answer: <br>
Explanation:Unpaired or void tags do not have a closing tag and cannot contain content. <br> is a prime example.
Incorrect! Try again.
13Which tag is used to define important text, typically displayed in bold?
A.<b>
B.<strong>
C.<bold>
D.<imp>
Correct Answer: <strong>
Explanation:The <strong> tag is used to define text with strong importance. The content is typically displayed in bold.
Incorrect! Try again.
14What is the semantic difference between <b> and <strong>?
A.There is no difference
B.<b> implies importance, <strong> is just stylistic
C.<strong> implies semantic importance, <b> is just stylistic
D.<b> creates a larger font than <strong>
Correct Answer: <strong> implies semantic importance, <b> is just stylistic
Explanation:<strong> indicates that the text is logically important, whereas <b> draws attention (bold) without conveying extra importance.
Incorrect! Try again.
15Which tag is used to emphasize text, typically displaying it in italics?
A.<i>
B.<italic>
C.<em>
D.<sl>
Correct Answer: <em>
Explanation:The <em> tag is used to define emphasized text. The content is typically displayed in italic.
Incorrect! Try again.
16Which HTML element defines text that should be marked or highlighted?
A.<highlight>
B.<mark>
C.<strong>
D.<hl>
Correct Answer: <mark>
Explanation:The <mark> tag defines text that should be marked or highlighted, usually with a yellow background by default.
Incorrect! Try again.
17What is the purpose of the <small> tag?
A.To create a subscript
B.To define smaller text, often used for copyright or side comments
C.To shrink the container size
D.To create a thumbnail image
Correct Answer: To define smaller text, often used for copyright or side comments
Explanation:The <small> tag defines smaller text (like side comments, fine print, or copyright notices).
Incorrect! Try again.
18Which tag is used to define an abbreviation or acronym?
A.<acr>
B.<abbr>
C.<short>
D.<abb>
Correct Answer: <abbr>
Explanation:The <abbr> tag is used to define abbreviations or acronyms, often used with a title attribute to provide the full description.
Incorrect! Try again.
19Which attribute is commonly used with <abbr> to show the full definition on hover?
A.src
B.alt
C.title
D.href
Correct Answer: title
Explanation:The global 'title' attribute is used with <abbr> to provide the expansion of the abbreviation/acronym when the user hovers over it.
Incorrect! Try again.
20Which tag defines the title of a creative work (e.g., a book or movie)?
A.<title>
B.<work>
C.<cite>
D.<ref>
Correct Answer: <cite>
Explanation:The <cite> tag defines the title of a creative work. Browsers usually display this in italics.
Incorrect! Try again.
21What is the purpose of the <dfn> tag?
A.To delete text
B.To define the defining instance of a term
C.To display a default number
D.To define a function
Correct Answer: To define the defining instance of a term
Explanation:The <dfn> tag represents the 'defining instance' of a term, typically the first time a new term is introduced and defined in a document.
Incorrect! Try again.
22Which tag is used for a section that is quoted from another source (usually a block of text)?
A.<q>
B.<quote>
C.<blockquote>
D.<citation>
Correct Answer: <blockquote>
Explanation:The <blockquote> tag specifies a section that is quoted from another source. Browsers usually indent blockquotes.
Incorrect! Try again.
23Which tag is used for short, inline quotations?
A.<q>
B.<blockquote>
C.<cite>
D.<quotation>
Correct Answer: <q>
Explanation:The <q> tag defines a short quotation. Browsers normally insert quotation marks around the quotation.
Incorrect! Try again.
24How do you write a comment in HTML?
A.// This is a comment
B./ This is a comment /
C.<!-- This is a comment -->
D.<comment> This is a comment </comment>
Correct Answer: <!-- This is a comment -->
Explanation:HTML comments start with <!-- and end with -->. They are not displayed in the browser.
Incorrect! Try again.
25What characterizes a 'Paired Tag' in HTML?
A.It only has an opening tag
B.It has both an opening and a closing tag
C.It must strictly be paired with CSS
D.It cannot contain attributes
Correct Answer: It has both an opening and a closing tag
Explanation:Paired tags (also called container tags) consist of an opening tag and a closing tag, with content in between (e.g., <p>content</p>).
Incorrect! Try again.
26Which of the following is a main characteristic of Block-level elements?
A.They always start on a new line
B.They only take up as much width as necessary
C.They cannot contain other elements
D.They are used only for images
Correct Answer: They always start on a new line
Explanation:Block-level elements always start on a new line and take up the full width available (stretching out to the left and right as far as they can).
Incorrect! Try again.
27Which of the following is a main characteristic of Inline elements?
A.They start on a new line
B.They take up the full width of the page
C.They only take up as much width as necessary
D.They cannot contain text
Correct Answer: They only take up as much width as necessary
Explanation:Inline elements do not start on a new line and only take up as much width as necessary to display their content.
Incorrect! Try again.
28Which of the following is a Block-level element?
A.<span>
B.<em>
C.<div>
D.<a>
Correct Answer: <div>
Explanation:The <div> tag is a block-level element used as a container for other HTML elements. The others listed are inline elements.
Incorrect! Try again.
29Which of the following is an Inline element?
A.<h1>
B.<p>
C.<span>
D.<ul>
Correct Answer: <span>
Explanation:The <span> tag is an inline container used to mark up a part of a text or a document. <h1>, <p>, and <ul> are block-level.
Incorrect! Try again.
30Is the <img> tag paired or unpaired?
A.Paired
B.Unpaired
C.Both
D.Neither
Correct Answer: Unpaired
Explanation:The <img> tag is an empty (void) tag; it contains attributes only and does not have a closing tag.
Incorrect! Try again.
31Which element is strictly required to appear within the <head> section?
A.<h1>
B.<title>
C.<p>
D.<img>
Correct Answer: <title>
Explanation:The <title> element is required in the <head> section of an HTML document to define the title of the document.
Incorrect! Try again.
32What happens if you do not close a paired tag like <p> in HTML5?
A.The page will crash
B.The browser will try to guess where to close it, potentially causing layout issues
C.The text will disappear
D.An error message pops up
Correct Answer: The browser will try to guess where to close it, potentially causing layout issues
Explanation:Browsers are forgiving and will attempt to render the page, but missing closing tags can lead to unexpected formatting results.
Incorrect! Try again.
33Can a block-level element contain an inline element?
A.Yes, always
B.No, never
C.Only in the <head>
D.Only if it is an image
Correct Answer: Yes, always
Explanation:Block-level elements typically contain inline elements and other block-level elements.
Incorrect! Try again.
34Can an inline element contain a block-level element?
A.Yes, always
B.Generally no, with some exceptions in HTML5
C.Only if using CSS
D.No, it creates a syntax error
Correct Answer: Generally no, with some exceptions in HTML5
Explanation:According to HTML standards, inline elements should not contain block-level elements (though HTML5 allows <a> to wrap blocks, generally strictly inline elements cannot hold blocks).
Incorrect! Try again.
35Which tag is used to display text exactly as it is written, preserving spaces and line breaks?
A.<p>
B.<pre>
C.<br>
D.<hr>
Correct Answer: <pre>
Explanation:The <pre> (preformatted text) tag preserves both spaces and line breaks within the code.
Incorrect! Try again.
36What does the 'charset' attribute in the <meta> tag define?
A.The font style
B.The character encoding
C.The author name
D.The page description
Correct Answer: The character encoding
Explanation:The <meta charset='UTF-8'> tag specifies the character encoding for the HTML document.
Incorrect! Try again.
37Which of the following tags is semantically appropriate for emphasizing a warning or alert in text?
A.<i>
B.<b>
C.<strong>
D.<span>
Correct Answer: <strong>
Explanation:<strong> implies that the text is of strong importance, seriousness, or urgency, making it suitable for warnings.
Incorrect! Try again.
38The <head> tag is a container for:
A.Visible content
B.Metadata
C.Headings h1-h6
D.Footers
Correct Answer: Metadata
Explanation:The <head> element contains metadata (info about the document) such as title, scripts, styles, and meta tags.
Incorrect! Try again.
39In the context of <abbr title='World Health Organization'>WHO</abbr>, what does the title attribute do?
A.Links to the website
B.Shows 'World Health Organization' as a tooltip on hover
C.Makes the text bold
D.It does nothing
Correct Answer: Shows 'World Health Organization' as a tooltip on hover
Explanation:The title attribute provides a tooltip containing the full expansion of the abbreviation when hovered over.
Incorrect! Try again.
40Which tag would you use to reference the title of a book within a paragraph?
A.<book>
B.<title>
C.<cite>
D.<ref>
Correct Answer: <cite>
Explanation:The <cite> tag is the semantic element used to reference the title of a creative work.
Incorrect! Try again.
41If you want to highlight a specific part of the text because of its relevance in a search result, which tag should be used?
A.<strong>
B.<em>
C.<mark>
D.<b>
Correct Answer: <mark>
Explanation:The <mark> tag is specifically designed to represent text which is marked or highlighted for reference or notation purposes.
Incorrect! Try again.
42Which HTML version introduced semantic tags like <mark> and <time>?
A.HTML 2.0
B.HTML 4.01
C.XHTML
D.HTML5
Correct Answer: HTML5
Explanation:HTML5 introduced many semantic elements including <mark>, <time>, <header>, <footer>, etc.
Incorrect! Try again.
43What is the default display behavior of the <h1> tag?
A.Inline
B.Block-level
C.Hidden
D.Flex
Correct Answer: Block-level
Explanation:Headings (<h1> through <h6>) are block-level elements, meaning they start on a new line.
Incorrect! Try again.
44What is the default display behavior of the <strong> tag?
A.Inline
B.Block-level
C.Grid
D.None
Correct Answer: Inline
Explanation:Text formatting tags like <strong>, <em>, and <span> are inline elements by default.
Incorrect! Try again.
45Which tag serves as the container for all other HTML elements except the <!DOCTYPE>?
A.<head>
B.<body>
C.<html>
D.<main>
Correct Answer: <html>
Explanation:The <html> tag is the root element and acts as the container for everything else in the document structure.
Incorrect! Try again.
46Why are comments used in HTML code?
A.To display messages to the user
B.To format the output text
C.To help developers understand the code
D.To execute scripts
Correct Answer: To help developers understand the code
Explanation:Comments are not displayed by the browser but help developers leave notes and explanations within the source code.
Incorrect! Try again.
47The <br> tag stands for:
A.Break Ruler
B.Break Row
C.Break Line
D.Border Radius
Correct Answer: Break Line
Explanation:<br> stands for Break Line (or Line Break).
Incorrect! Try again.
48Which element represents a term being defined within a description list or sentence?
A.<dt>
B.<dd>
C.<dfn>
D.<def>
Correct Answer: <dfn>
Explanation:While <dt> is used in description lists, <dfn> is the inline element used to indicate the defining instance of a term.
Incorrect! Try again.
49What is the correct syntax for an attribute?
A.name='value'
B.name:value
C.name(value)
D.{name:value}
Correct Answer: name='value'
Explanation:Attributes are written in the opening tag as name-value pairs, typically separated by an equals sign and quotes (e.g., class='container').
Incorrect! Try again.
50Which of the following elements creates a thematic break, traditionally rendered as a horizontal line?
A.<line>
B.<break>
C.<hr>
D.<tr >
Correct Answer: <hr>
Explanation:The <hr> tag creates a horizontal rule or thematic break.
Incorrect! Try again.
Give Feedback
Help us improve by sharing your thoughts or reporting issues.