HTML

Practice HTML MCQs covering document structure, semantic elements, forms, tables, multimedia, links, images, accessibility, HTML5 features, and other core web development concepts.

3
Topics
304
Total MCQs

HTML

Practice HTML MCQs covering document structure, semantic elements, forms, tables, multimedia, links, images, accessibility, HTML5 features, and other core web development concepts.

100 MCQs Page 1 of 5
0
0
/ 100
0%
A. Hyper Text Markup Language
B. High Tech Modern Language
C. Hyper Transfer Markup Language
D. High Text Markup Language
Answer: HTML stands for Hyper Text Markup Language, which is the standard markup language for creating web pages.
A. <ol>
B. <ul>
C. <li>
D. <list>
Answer: The <ul> tag defines an unordered (bulleted) list. <ol> is for ordered lists and <li> defines list items.
A. <lb>
B. <break>
C. <br>
D. <newline>
Answer: The <br> tag inserts a single line break. It is an empty element which means it has no closing tag.
A. src
B. href
C. link
D. url
Answer: The href attribute specifies the URL of the page the link goes to in an <a> tag.
A. <h6>
B. <h1>
C. <heading>
D. <head>
Answer: <h1> defines the largest heading and <h6> defines the smallest heading.
A. <a>
B. <link>
C. <href>
D. <url>
Answer: The <a> tag (anchor tag) is used to create hyperlinks in HTML.
A. <img>
B. <image>
C. <src>
D. <pic>
Answer: The <img> tag is used to embed images in HTML pages. It uses the src attribute to specify the image URL.
A. <i>
B. <em>
C. <strong>
D. <b>
Answer: The <em> tag is used to define emphasized text, which is typically displayed in italics but with semantic importance.
A. title
B. alt
C. src
D. longdesc
Answer: The alt attribute provides alternative text for an image if it cannot be displayed or for accessibility purposes.
A. <input type="check">
B. <checkbox>
C. <input type="checkbox">
D. <check>
Answer: <input type="checkbox"> creates a checkbox input field in HTML forms.
A. <td>
B. <tr>
C. <th>
D. <row>
Answer: The <tr> tag defines a row in an HTML table. <td> defines table data cells and <th> defines header cells.
A. <body style="background-color:red;">
B. <body bg="red">
C. <background>red</background>
D. <body color="red">
Answer: The style attribute with background-color property is the modern way to set background color in HTML.
A. <title>
B. <head>
C. <header>
D. <meta>
Answer: The <title> element defines the title of the document, which appears in the browser tab.
A. <input type="text">
B. <textfield>
C. <input type="string">
D. <text>
Answer: <input type="text"> creates a single-line text input field in HTML forms.
A. <ul>
B. <ol>
C. <li>
D. <list>
Answer: The <ol> tag defines an ordered (numbered) list. Each list item is defined with the <li> tag.
A. class
B. style
C. font
D. styles
Answer: The style attribute is used to add inline CSS styles directly to HTML elements.
A. <list>
B. <select>
C. <dropdown>
D. <input type="dropdown">
Answer: The <select> element creates a drop-down list. Options are defined with <option> tags.
A. <p>
B. <para>
C. <paragraph>
D. <text>
Answer: The <p> tag defines a paragraph in HTML. It automatically adds space before and after the content.
A. Creates a horizontal rule
B. Creates a header
C. Creates a hyperlink
D. Creates a horizontal scroll
Answer: The <hr> tag creates a horizontal rule (line) that separates content in an HTML page.
A. <td>
B. <th>
C. <tr>
D. <thead>
Answer: The <th> tag defines a header cell in an HTML table, which is typically bold and centered.
1 2 3