YouTube · Steven Codecraft · Unknown · Nov 25, 2026
The video gives a generally correct intro to HTML structure and common elements, but it incorrectly says all HTML files use the .html extension and slightly oversimplifies how doctype works.
Claim-by-claim breakdown
Accurate (98% confidence): HTML defines the content and structure of web pages. MDN defines HTML as the basic building block of the web that defines the meaning and structure of web content.
Accurate (95% confidence): HTML uses opening and closing tags to organize content. HTML elements are generally written with opening and closing tags, though some void elements have no closing tag.
False (96% confidence): All HTML documents have the file extension .html. MDN notes HTML files are normally saved with an .htm or .html extension.
Misleading (84% confidence): The doctype tells the browser what version of HTML you are using. The HTML doctype is a short declaration used at the start of the document; in HTML5 it is simply and does not specify a detailed version.
Accurate (97% confidence): The head section contains metadata for the web page and is not displayed in the page body. The head element represents metadata about the document and is separate from visible page content.
Accurate (97% confidence): The body section contains the visible content of the page. HTML specifications describe the body as the document section that contains the content for the page.
Accurate (96% confidence): H1 is used for the most important heading, with H2 through H6 used for progressively less important headings. HTML heading elements range from h1 to h6, representing six levels of section headings.
Accurate (95% confidence): The paragraph element is used for blocks of text. The p element represents a paragraph.
Accurate (98% confidence): The anchor element creates links to other web pages using the href attribute, which can take a relative or absolute URL. The a element uses href to create hyperlinks, and href may point to relative or absolute URLs.
Accurate (86% confidence): HTML attributes are key-value pairs that customize an element's behavior or appearance. HTML attributes are name-value pairs, but their effects vary: some affect behavior, some semantics, and some are used by CSS or scripts.
Accurate (97% confidence): The alt attribute provides text for screen readers and when an image cannot be displayed. MDN states that alt supplies alternative text for accessibility and fallback when the image cannot be seen.
Accurate (98% confidence): The img element is a void element and does not need a closing tag. Void elements in HTML do not have closing tags; img is one of them.
Accurate (95% confidence): HTML5 includes elements such as video, audio, and canvas. The HTML specification includes multimedia and canvas elements such as video, audio, and canvas.
Accurate (97% confidence): HTML has semantic elements such as header, nav, main, section, aside, and footer. HTML includes semantic sectioning elements such as header, nav, main, section, aside, and footer.