[CAHTML] Code Academy HTML Certification Exam Preparation, Exams of Technology

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

2025/2026

Available from 02/12/2026

shilpi-jain-3
shilpi-jain-3 🇮🇳

2.5

(11)

80K documents

1 / 99

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
[CAHTML] Code Academy HTML
Certification Exam Preparation
**Question 1. Which declaration must appear at the very top of every HTML5 document?**
A) `<meta charset="UTF-8">`
B) `<!DOCTYPE html>`
C) `<html lang="en">`
D) `<head>`
Answer: B
Explanation: The `<!DOCTYPE html>` declaration tells the browser to render the page in
standards mode using HTML5.
**Question 2. Which element directly follows the `<!DOCTYPE html>` declaration in a
wellformed HTML file?**
A) `<head>`
B) `<body>`
C) `<html>`
D) `<title>`
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">`
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63

Partial preview of the text

Download [CAHTML] Code Academy HTML Certification Exam Preparation and more Exams Technology in PDF only on Docsity!

Certification Exam Preparation

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 &lt;html&gt; root element encloses the &lt;head&gt; and &lt;body&gt; sections. Question 3. Which tag is used to define the document’s character encoding? A) &lt;meta name="charset"&gt; B) &lt;meta charset="UTF-8"&gt; C) &lt;encoding&gt; D) &lt;meta http-equiv="charset"&gt;

Certification Exam Preparation

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 Preparation

Answer: 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?

Certification Exam Preparation

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

Certification Exam Preparation

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)

Certification Exam Preparation

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.

Certification Exam Preparation

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

Certification Exam Preparation

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?

Certification Exam Preparation

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: `

Certification Exam Preparation

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?

Certification Exam Preparation

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) ``

Certification Exam Preparation

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.

Certification Exam Preparation

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) &lt;summary&gt; Answer: A Explanation: &lt;caption&gt; defines a table’s title and is read by screen readers. Question 50. Which attribute of the &lt;link&gt; 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 &lt;script&gt; tag defers execution until after the document has been parsed?

Certification Exam Preparation

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) ``