0% found this document useful (0 votes)
10 views14 pages

IBM HTML Certification MCQs Guide

The document contains a series of multiple-choice questions (MCQs) focused on HTML fundamentals, tags, tables, lists, fonts, buttons, attributes, forms, div elements, and the Software Development Life Cycle (SDLC) related to HTML. Each section includes questions that test knowledge on specific HTML concepts and practices, along with an answer key that provides correct answers and explanations. The content is structured in a clear format, making it suitable for individuals preparing for HTML certification or assessments.

Uploaded by

vishaks2722
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views14 pages

IBM HTML Certification MCQs Guide

The document contains a series of multiple-choice questions (MCQs) focused on HTML fundamentals, tags, tables, lists, fonts, buttons, attributes, forms, div elements, and the Software Development Life Cycle (SDLC) related to HTML. Each section includes questions that test knowledge on specific HTML concepts and practices, along with an answer key that provides correct answers and explanations. The content is structured in a clear format, making it suitable for individuals preparing for HTML certification or assessments.

Uploaded by

vishaks2722
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

IBM HTML CERTIFICATION - MCQS

═══════════════════════════════════════════════════════════

SECTION 1: HTML FUNDAMENTALS (6 Questions)

═══════════════════════════════════════════════════════════

Q1. What does HTML stand for?


A) HyperText Markup Language
B) Home Tool Markup Language
C) Hyperlinks and Text Markup Language
D) Home Text Markup Language

Q2. Which HTML element is used to define the main content of a web page?
A) <body>
B) <head>
C) <main>
D) <content>

Q3. What is the correct HTML structure for creating a basic web page?
A) <html><head><body></body></head></html>
B) <html><body><head></head></body></html>
C) <html><head></head><body></body></html>
D) <head><html><body></body></html></head>

Q4. Which of the following is a semantic HTML5 element?


A) <div>
B) <span>
C) <article>
D) <font>

Q5. What is the purpose of the <!DOCTYPE html> declaration?


A) To define the document type
B) To declare the HTML version
C) To specify character encoding
D) To link external stylesheets

Q6. Which tag is used to define metadata in HTML?


A) <meta>
B) <metadata>
C) <info>
D) <header>

1|Page
SECTION 2: HTML TAGS (7 Questions)

═══════════════════════════════════════════════════════════

Q7. Which tag is used to create a hyperlink?


A) <a>
B) <link>
C) <href>
D) <url>

Q8. What does the <strong> tag represent?


A) Bold text with normal importance
B) Bold text with strong importance
C) Emphasized text
D) Underlined text

Q9. Which tag is used to display an image?


A) <image>
B) <img>
C) <picture>
D) <graphic>

Q10. What is the purpose of the <br> tag?


A) To create a paragraph
B) To create a line break
C) To create a block element
D) To create a section

Q11. Which tag is used to define a paragraph?


A) <p>
B) <para>
C) <paragraph>
D) <text>

Q12. What does the <em> tag represent?


A) Email tag
B) Emphasized text
C) Embedded media
D) Emergency tag

Q13. Which tag is used to create a horizontal line?


A) <line>
B) <hr>
C) <horizontal>

2|Page
D) <divider>

SECTION 3: HTML TABLES (6 Questions)

═══════════════════════════════════════════════════════════

Q14. Which tag is used to define a table in HTML?


A) <tab>
B) <table>
C) <grid>
D) <data>

Q15. What does the <tr> tag represent?


A) Table row
B) Table reference
C) Table range
D) Text row

Q16. Which tag defines a table header cell?


A) <td>
B) <th>
C) <thead>
D) <header>

Q17. What does <td> stand for?


A) Table data
B) Table definition
C) Table details
D) Table division

Q18. Which tag groups the header content in a table?


A) <thead>
B) <header>
C) <th>
D) <head>

Q19. What is the purpose of the <tbody> tag?


A) To define the body of a table
B) To define table data
C) To define table rows
D) To define table columns

3|Page
SECTION 4: HTML LISTS (5 Questions)

═══════════════════════════════════════════════════════════

Q20. Which tag is used to create an ordered list?


A) <ol>
B) <ul>
C) <list>
D) <dl>

Q21. What tag is used to create an unordered list?


A) <ol>
B) <ul>
C) <list>
D) <items>

Q22. Which tag defines a list item?


A) <item>
B) <li>
C) <listitem>
D) <element>

Q23. What does <dl> represent?


A) Dynamic list
B) Data list
C) Definition list
D) Document list

Q24. Which tag is used with <dl> to define a term?


A) <dt>
B) <dd>
C) <term>
D) <description>

SECTION 5: HTML FONTS (6 Questions)

═══════════════════════════════════════════════════════════

Q25. Which tag is used to define heading in HTML?


A) <h6> to <h1>
B) <h1> to <h6>
C) <heading>
D) <title>

4|Page
Q26. What is the largest heading size in HTML?
A) <h1>
B) <h2>
C) <h3>
D) <h6>

Q27. Which of the following is a semantic way to make text bold?


A) <b>
B) <i>
C) <strong>
D) <u>

Q28. What is the difference between <b> and <strong> tags?


A) No difference
B) <b> is semantic, <strong> is not
C) <strong> conveys more semantic importance
D) <b> is deprecated

Q29. Which tag is used to define superscript text?


A) <sub>
B) <sup>
C) <super>
D) <over>

Q30. What does the <sub> tag represent?


A) Subscript text
B) Subtitle text
C) Subject text
D) Submission text

SECTION 6: HTML BUTTONS (5 Questions)

═══════════════════════════════════════════════════════════

Q31. Which tag is used to create a button in HTML?


A) <btn>
B) <button>
C) <input type="button">
D) Both B and C

Q32. What is the default type of a button element?


A) text

5|Page
B) submit
C) reset
D) button

Q33. Which attribute is used to disable a button?


A) disable
B) disabled
C) off
D) inactive

Q34. What does the submit button do?


A) Submits form data to server
B) Resets form data
C) Clears the button
D) Disables the form

Q35. Which type of button is used to reset form values?


A) <button type="reset">
B) <button type="clear">
C) <button type="undo">
D) <reset>

SECTION 7: HTML ATTRIBUTES (6 Questions)

═══════════════════════════════════════════════════════════

Q36. Which attribute is used to provide a unique identifier to an element?


A) class
B) id
C) name
D) identifier

Q37. What is the purpose of the class attribute?


A) To identify a unique element
B) To apply styles to one element
C) To apply styles to multiple elements
D) To create a group

Q38. Which attribute specifies alternate text for an image?


A) alt
B) text
C) title
D) description

6|Page
Q39. What is the purpose of the title attribute?
A) Page title
B) Element tooltip
C) Heading title
D) Header title

Q40. Which attribute is used to specify the full URL of a hyperlink?


A) ref
B) link
C) href
D) url

Q41. What does the target attribute do in an anchor tag?


A) Specifies where to open the link
B) Specifies link color
C) Specifies link text
D) Specifies link size

SECTION 8: HTML FORMS (5 Questions)

═══════════════════════════════════════════════════════════

Q42. Which tag is used to create an HTML form?


A) <input>
B) <form>
C) <form-element>
D) <field>

Q43. What does the method attribute in a form specify?


A) Form name
B) How data is sent to server (GET or POST)
C) Form validation
D) Form styling

Q44. Which attribute is used to specify where form data will be sent?
A) method
B) action
C) target
D) destination

Q45. What type of input field is used to create a text box?


A) <input type="text">

7|Page
B) <input type="textbox">
C) <textarea>
D) Both A and C

Q46. Which input type is used for password fields?


A) <input type="pwd">
B) <input type="secret">
C) <input type="password">
D) <input type="hidden">

SECTION 9: HTML DIV (4 Questions)

═══════════════════════════════════════════════════════════

Q47. What is a <div> element used for?


A) Defining divisions or sections
B) Creating standalone content
C) Creating groupings with CSS styling
D) All of the above

Q48. Is <div> a block-level or inline element?


A) Inline
B) Block-level
C) Inline-block
D) None of the above

Q49. What is the main difference between <div> and <span>?


A) <div> is block, <span> is inline
B) <div> is for text, <span> is for containers
C) No difference
D) <span> is deprecated

Q50. Which CSS property is commonly used with <div> for layout?
A) display
B) position
C) float
D) All of the above

8|Page
SECTION 10: SDLC ON HTML (5 Questions)

═══════════════════════════════════════════════════════════

Q51. What does SDLC stand for in the context of web development?
A) Software Development Life Cycle
B) Standard Design Layout Code
C) Structured Design Language Code
D) System Design and Lifecycle

Q52. In which phase of SDLC is HTML typically created?


A) Planning phase
B) Design phase
C) Development/Implementation phase
D) Testing phase

Q53. What is the primary purpose of validation in HTML development?


A) To check HTML syntax and structure
B) To verify browser compatibility
C) To optimize performance
D) To enhance security

Q54. Which tool is commonly used to validate HTML code?


A) W3C HTML Validator
B) Lighthouse
C) DevTools Inspector
D) All of the above

Q55. What best practice should be followed when writing HTML in SDLC?
A) Use semantic HTML elements
B) Maintain proper document structure
C) Follow consistent indentation and naming conventions
D) All of the above

9|Page
ANSWER KEY WITH EXPLANATIONS

Q1. Answer: A
Explanation: HTML stands for HyperText Markup Language. It is the standard markup language
used to create web pages.

Q2. Answer: C
Explanation: The <main> element represents the dominant content of the body of a document.
The <body> element contains all content, and <head> contains metadata.

Q3. Answer: C
Explanation: The correct HTML5 structure is <html> as root, followed by <head> (with
metadata), then <body> (with content).

Q4. Answer: C
Explanation: The <article> element is a semantic HTML5 element that represents independent,
self-contained content. <div> and <span> are non-semantic.

Q5. Answer: A
Explanation: The <!DOCTYPE html> declaration defines the document type and version,
informing the browser how to interpret the page.

Q6. Answer: A
Explanation: The <meta> tag is used to define metadata such as character set, viewport, and
other document-level information.

Q7. Answer: A
Explanation: The <a> tag is used to create hyperlinks. The "a" stands for "anchor".

Q8. Answer: B
Explanation: The <strong> tag represents text with strong semantic importance, typically
displayed as bold. It indicates importance, not just styling.

Q9. Answer: B
Explanation: The <img> tag is used to embed images in HTML. <image> is not a valid HTML
tag.

Q10. Answer: B
Explanation: The <br> tag creates a line break (carriage return) within text. It is a self-closing
tag.

Q11. Answer: A
Explanation: The <p> tag defines a paragraph. Browsers automatically add margins before and
after a paragraph element.

10 | P a g e
Q12. Answer: B
Explanation: The <em> tag represents emphasized text, typically displayed as italic. It indicates
stress emphasis semantically.

Q13. Answer: B
Explanation: The <hr> tag creates a thematic break, displayed as a horizontal line to separate
content sections.

Q14. Answer: B
Explanation: The <table> tag is the container for all table elements in HTML. It defines the
structure of a data table.

Q15. Answer: A
Explanation: The <tr> tag represents a table row. Each <tr> contains multiple cells (<td> or
<th>).

Q16. Answer: B
Explanation: The <th> tag defines a table header cell. It is semantically different from <td> (table
data cell).

Q17. Answer: A
Explanation: <td> stands for "table data". It represents a standard data cell in a table row.

Q18. Answer: A
Explanation: The <thead> tag groups header content (usually <tr> with <th> elements) in a table
for semantic structure.

Q19. Answer: A
Explanation: The <tbody> tag groups the body content of a table, separating it from header and
footer sections.

Q20. Answer: A
Explanation: The <ol> tag creates an ordered list with numbered items.

Q21. Answer: B
Explanation: The <ul> tag creates an unordered list with bullet points.

Q22. Answer: B
Explanation: The <li> tag defines a list item. It is used within <ol>, <ul>, or <dl> tags.

Q23. Answer: C
Explanation: <dl> stands for "definition list", used to display terms and their definitions.

11 | P a g e
Q24. Answer: A
Explanation: The <dt> tag defines a term in a definition list. <dd> defines the description of that
term.

Q25. Answer: B
Explanation: The heading hierarchy in HTML goes from <h1> (largest) to <h6> (smallest). <h1>
should be used once per page for the main title.

Q26. Answer: A
Explanation: <h1> is the largest heading size in HTML and represents the main heading of a
page.

Q27. Answer: C
Explanation: The <strong> tag is the semantic way to indicate text with strong importance. <b>
is only for styling without semantic meaning.

Q28. Answer: C
Explanation: <strong> conveys strong semantic importance and should be used for significant
content, while <b> is just visual styling without semantic value.

Q29. Answer: B
Explanation: The <sup> tag defines superscript text, displayed above the normal line (e.g., for
exponents or footnotes).

Q30. Answer: A
Explanation: The <sub> tag defines subscript text, displayed below the normal line (e.g., in
chemical formulas like H2O).

Q31. Answer: D
Explanation: Both <button> tag and <input type="button"> can be used to create buttons.
However, <button> is more semantic and flexible.

Q32. Answer: D
Explanation: The default type of a button element is "button", which doesn't submit or reset
forms unless specified otherwise.

Q33. Answer: B
Explanation: The "disabled" attribute (not "disable") disables a button, preventing user
interaction.

Q34. Answer: A
Explanation: A submit button sends form data to the server based on the form's action attribute.

12 | P a g e
Q35. Answer: A
Explanation: The <button type="reset"> is used to reset all form fields to their default values.

Q36. Answer: B
Explanation: The "id" attribute provides a unique identifier for an HTML element. IDs must be
unique within a page.

Q37. Answer: C
Explanation: The "class" attribute is used to apply CSS styles to multiple elements that share
the same class name.

Q38. Answer: A
Explanation: The "alt" attribute provides alternative text for images, displayed if the image fails
to load and used by screen readers.

Q39. Answer: B
Explanation: The "title" attribute displays a tooltip when users hover over an element.

Q40. Answer: C
Explanation: The "href" attribute specifies the URL (Hypertext REFerence) that the link points to.

Q41. Answer: A
Explanation: The "target" attribute in an anchor tag specifies where to open the link (e.g., _blank
for new tab, _self for same window).

Q42. Answer: B
Explanation: The <form> tag is the container for form elements like input fields, buttons, and
textareas.

Q43. Answer: B
Explanation: The "method" attribute specifies how form data is sent: GET (in URL) or POST (in
request body).

Q44. Answer: B
Explanation: The "action" attribute specifies the URL where form data will be sent when the form
is submitted.

Q45. Answer: D
Explanation: Both <input type="text"> and <textarea> can be used for text input, with textarea
being better for multi-line text.

Q46. Answer: C
Explanation: The <input type="password"> creates a password field where entered characters
are masked for security.

13 | P a g e
Q47. Answer: D
Explanation: The <div> element is a generic container used for grouping sections, creating
layouts, and applying CSS styling.

Q48. Answer: B
Explanation: <div> is a block-level element, meaning it takes up the full width available and
creates line breaks before and after.

Q49. Answer: A
Explanation: <div> is a block-level element, while <span> is an inline element. <span> doesn't
create new lines.

Q50. Answer: D
Explanation: Common CSS properties used with <div> for layout include display (flexbox, grid),
position (absolute, relative), and float.

Q51. Answer: A
Explanation: SDLC stands for Software Development Life Cycle, which includes phases like
planning, design, development, testing, and deployment.

Q52. Answer: C
Explanation: HTML is typically created during the Development/Implementation phase when the
design specifications are being coded.

Q53. Answer: A
Explanation: HTML validation checks the syntax and structure of HTML code to ensure
compliance with standards.

Q54. Answer: D
Explanation: All three tools can be used to validate HTML: W3C HTML Validator (online tool),
Lighthouse (Chrome tool), and DevTools Inspector.

Q55. Answer: D
Explanation: All mentioned practices should be followed: using semantic HTML, maintaining
structure, and following consistent naming conventions.

14 | P a g e

You might also like