<p class="intro">
The element starts here. The browser now knows a paragraph begins.
Explore the HTML element system and open dedicated lessons for headings, text, links, images, lists, forms, tables and layout.
HTML elements
Elements are the named building blocks of a page. A heading is not just large text, a list is not just lines under each other and a form is not just a few input boxes. Each element tells the browser what kind of content it is reading.
Use this page as the element map. Start with the document root, metadata and body, then move into landmarks, sections, headings, text, media, tables and forms. Each card opens a dedicated lesson with syntax, examples, common mistakes, accessibility notes, production context and a live code lab.
<p class="intro">Hello world</p>
<p class="intro">
The element starts here. The browser now knows a paragraph begins.
class="intro"
The class is a styling or scripting hook. It does not change the meaning of the paragraph.
Hello world
This is the actual text content the paragraph contains.
</p>
The paragraph ends here. Most text elements need a closing tag.
<p class="intro">Hello world</p>
The complete element is the opening tag, optional attributes, content and closing tag together.
Learn html, head and body first. They decide where metadata ends and visible content begins.
Use landmarks, sections and headings to create a page that can be scanned, indexed and navigated.
Text, lists, links, media, tables and forms become easier when the structure underneath is already clean.
htmlThe root of the document. Everything else lives inside it.
Metadatahead, title, meta, linkInformation for browsers, search engines, CSS, icons and sharing previews.
Page bodybodyThe visible interface and content of the document.
Landmarksheader, nav, main, footerLarge page regions that make a layout easier to understand.
Sectionssection, article, asideMeaningful content regions instead of neutral wrappers.
Headingsh1 to h6The readable outline of the page.
Text blocksp, blockquote, pre, hr, addressParagraphs, quotes, preformatted text, contact details and topic breaks.
Listsul, ol, li, dlGrouped items, ordered steps and term-description pairs.
Inline texta, strong, em, code, spanMeaning and neutral hooks inside a sentence: links, importance, emphasis, code and span.
Mediaimg, picture, video, audioImages and rich media with accessibility and performance concerns.
Embeddediframe, embed, objectExternal or isolated content that needs security thinking.
Graphicscanvas, svgProgrammatic drawing and scalable vector markup.
Tablestable, thead, tbody, tr, th, tdReal structured data, never layout hacks.
Formsform, label, input, buttonInputs, conversion flows and data collection.
Scriptingscript, noscript, templateJavaScript loading, fallback content and reusable hidden markup.
Interactivedetails, summary, dialogNative disclosure and dialog behavior.
Live code lab
Edit the HTML or CSS, then use Run to refresh the preview. The preview is isolated, so links and forms stay inside this practice area.
Mini assignment
Practice assignment
Try it yourself
Self-check
Do not only read this page. Answer these questions out loud or write the answers in your own notes. If one answer feels vague, revisit the examples before moving on.