



























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This exam preparation guide introduces learners to HTML fundamentals required for certification. It covers document structure, semantic elements, forms, tables, multimedia integration, and accessibility best practices. Learners gain hands-on understanding of web page creation and standards-compliant coding. The guide is ideal for beginners and aspiring web developers preparing for HTML certification exams.
Typology: Exams
1 / 99
This page cannot be seen from the preview
Don't miss anything!




























































































Question 1. Which declaration must appear at the very top of every HTML5 document? A) B) C) D) Answer: B Explanation: The declaration tells the browser to render the page in standards mode using HTML5. **Question 2. Which element directly follows the declaration in a well‑formed HTML file?** A) B) C) D) Answer: C Explanation: After the doctype, the <html> root element encloses the <head> and <body> sections. Question 3. Which tag is used to define the document’s character encoding? A) <meta name="charset"> B) <meta charset="UTF-8"> C) <encoding> D) <meta http-equiv="charset">
Answer: B Explanation: The tag specifies the character encoding for the HTML document. **Question 4. Which of the following tags is *not* a block‑level element?** A) B) <p> C) D) Answer: C Explanation: is an inline element; all others are block‑level and start on a new line. **Question 5. Which tag creates a line break without starting a new paragraph?** A) `<br />` B) C) <p> D) </p> Answer: A Explanation: <br /> inserts a single line break; it is an empty (self‑closing) tag. Question 6. Which heading level should be used for the main title of a page? A) ``
## Certification Exam PreparationAnswer: A Explanation: denotes emphasis and is typically rendered in italics, conveying semantic importance. **Question 9. Which attribute of the tag specifies the destination URL?** A) src B) href C) link D) url Answer: B Explanation: The href (hypertext reference) attribute defines the URL that the link points to. Question 10. To open a hyperlink in a new browser tab, which attribute/value pair is correct? A) target="_self" B) target="_blank" C) rel="new" D) open="true" Answer: B Explanation: target="_blank" instructs the browser to open the linked document in a new tab or window. Question 11. Which attribute provides alternative text for an image, improving accessibility?
A) title B) alt C) src D) description Answer: B Explanation: The alt attribute supplies descriptive text for users who cannot see the image. **Question 12. Which of the following is the correct syntax for a self‑closing tag in HTML5?** A) B) C) D) Both A and B are valid Answer: D Explanation: In HTML5, both and are valid; the slash is optional. Question 13. Which attribute of the `` element adds playback controls for the user? A) autoplay B) controls C) muted D) loop Answer: B
Answer: B Explanation: creates a numbered list; list items are wrapped in. **Question 17. To nest a list inside another list item, where should the inner be placed?** A) Directly inside the tag B) Inside a of the outer list C) After the closing of the outer list D) Inside the Answer: B Explanation: Nested lists must be placed inside a of the parent list. Question 18. Which tag defines a table row? A) B) C) D) Answer: B Explanation: groups table cells into a row. **Question 19. Which tag defines a table header cell?** A)
B) C) D) Answer: C Explanation: marks a header cell, which is bold and centered by default. Question 20. Which attribute allows a table cell to span across three columns? A) rowspan="3" B) colspan="3" C) span="3" D) merge="3" Answer: B Explanation: colspan specifies the number of columns a cell should span. Question 21. Which attribute makes a table cell extend over two rows? A) rowspan="2" B) colspan="2" C) spanrows="2" D) merge="2" Answer: A Explanation: rowspan defines how many rows a cell occupies vertically.
Explanation: is used for summary or footer rows. **Question 25. Which attribute of the element specifies where the form data should be sent?** A) method B) action C) target D) enctype Answer: B Explanation: The action attribute contains the URL that will process the form submission. Question 26. Which attribute of the `` tag defines the HTTP method used when submitting? A) method B) action C) type D) enctype Answer: A Explanation: The method attribute is typically set to GET or POST. Question 27. Which input type hides the characters typed by the user? A) text B) password
C) email D) search Answer: B Explanation: type="password" masks the entered characters for privacy. Question 28. Which input type creates a slider control for numeric ranges? A) range B) number C) tel D) date Answer: A Explanation: type="range" renders a graphical slider. Question 29. Which attribute links a `` element to a specific form control? A) id B) for C) name D) src Answer: B Explanation: The for attribute’s value must match the id of the associated control. Question 30. Which element creates a drop‑down list of options?
Answer: A Explanation: min defines the lower bound for numeric input. **Question 33. Which attribute of enforces a specific regular‑expression pattern?** A) `match` B) `regex` C) `pattern` D) `format` Answer: C Explanation: The `pattern` attribute takes a regex that the input must satisfy. **Question 34. Which element is used for multi‑line text entry?** A) B) D) Answer: B Explanation: `
C) height D) length Answer: B Explanation: rows sets the height of the textarea in lines of text. Question 36. Which element creates a clickable button that can submit a form? A) B) C) D) Answer: B Explanation: `` triggers form submission when clicked. Question 37. Which input type presents a set of mutually exclusive options? A) checkbox B) radio C) select D) list Answer: B Explanation: Radio buttons allow only one selection within the same name group. Question 38. Which input type allows the user to select multiple, independent options?
Explanation: should contain the primary content and appear only once per page. **Question 41. Which element is most appropriate for a reusable content block like a sidebar?** A) B) C) D) Answer: A Explanation: holds tangential content such as sidebars or pull quotes. Question 42. Which element should be used to group a self‑contained composition that could be independently syndicated? A) B) C) D) Answer: B Explanation: represents a stand‑alone piece like a blog post or news story. **Question 43. Which element is best for a generic container when no semantic element fits?** A) B) ``
C) D) Answer: B Explanation: `` is a non‑semantic block‑level container. Question 44. Which attribute adds a short description to an image that appears as a tooltip on hover? A) alt B) title C) caption D) tooltip Answer: B Explanation: The title attribute provides supplemental information displayed as a tooltip. Question 45. Which ARIA role should be applied to a custom element that functions as a button? A) role="navigation" B) role="button" C) role="link" D) role="banner" Answer: B Explanation: role="button" informs assistive technologies that the element behaves like a button.
Answer: A Explanation: creates a visual and semantic grouping, often with a. **Question 49. Which element provides a caption for a ?** A) B) C) D) <summary> Answer: A Explanation: <caption> defines a table’s title and is read by screen readers. Question 50. Which attribute of the <link> element is used to associate an external stylesheet? A) src B) href C) rel="stylesheet" D) type="text/css" Answer: C Explanation: rel="stylesheet" tells the browser that the linked file is a CSS stylesheet. Question 51. Which attribute of the <script> tag defers execution until after the document has been parsed?
A) async B) defer C) type D) src Answer: B Explanation: defer loads the script without blocking HTML parsing and runs it after the DOM is ready. **Question 52. Which attribute of the tag defines the image’s intrinsic width and height?** A) `size` B) `dimensions` C) `width` and `height` D) `scale` Answer: C Explanation: The `width` and `height` attributes set the displayed size of the image. **Question 53. Which HTML element is used to define a block of computer code?** A) B) C) D) ``