
HTML Structure
The Heart of Every HTML Scroll
After spending a solid half-hour pondering over the code and jotting down your brilliant thoughts — hopefully without too many curses — I’m delighted to now reveal the illuminating wisdom of the document to you. Take your time to study this information carefully, for, like any good spellbook, this one also holds its own little secrets.
HTML Structure
The Cast of the Code Chaos

HTML-Tags
The Heart of Every HTML Scroll
With the mystical <…> tags, you open the magical doors of HTML elements, and with </…>, you close them again. Between these doors, text or nested elements can find their place. Beyond the element’s name, tags also contain attributes. Some tags even close themselves—you’ll get to know these particularly lazy tags soon.
<html>...</html>

Attributes
When HTML Tags Start Developing Quirks
Sometimes the basic setup of an element isn’t enough and you need to add some special properties. That’s what attributes are for—they’re like extra details that enhance your element. Imagine your element is a horse. With the right attribute, like “horn,” you can transform it into a magnificent unicorn.
<h1 class="horn">Unicorn</h1>

Document Type Declaration
The Secret Handshake of the Browser World
This unassuming tag at the beginning is no ordinary HTML tag—it’s the so-called document type declaration. With polite insistence, it informs the browser that this is an HTML5 document and how it should be
interpreted.
<!DOCTYPE html>

The <html> Element with the lang-Attribute
So the Browser Doesn’t Have to Guess What Language It’s Dreaming In
The <html> element opens the HTML document and carries a magical attribute that specifies the language of the content. In our case, lang=”en” whispers to the browser that the text written will be English.
<html lang="en">

The <head> Element
The Place Where HTML Sorts Its Thoughts
The <head> element is like the hidden control center of your document—a secret place where invisible forces are at work. Here, meta-information is gathered. This is essential for search engines and the flawless presentation of your page.
<head>...</head>

The <title> Element
The Name Above the Door of Your Digital Spellwork
Nestled within the <head> element lies this little enchantment that sets the title of your webpage. The title appears at the top of the browser tab and makes an impression on search engines. Choose your title wisely, for the little dragon wants to proudly announce its name to the world!
<title>...</title>

The <body> Element
This Is Where the Magic – or the Chaos – Happens
The <body> element is like the protective roof of your webpage, sheltering everything the user sees. Here, headlines, text, images, and other elements gather like guests at a lively party. Together, they bring your page to life!
<body>...</body>

The <h1> and <p> Element
Big Words, Small Stories – The Art of Storytelling in HTML
The <h1> element is the most powerful heading on your page. If you write “Magic Book” in-between its tags, the words appear in all their clarity, like an impressive magical incantation.
The <p> element, on the other hand, takes care of the body copy, where the content of your page unfolds and invites visitors to explore and enjoy.
<h1></h1> <p></p>