Cyber Code Academy
Tutorials Academy Courses
Home / html-tutorials-md / HTML Introduction

HTML Introduction

> Understand HTML, how browsers interpret markup, and why HTML is the foundation of frontend development.

**Cyber Code Academy · HTML Tutorial · Lesson 01 · Beginner**

## 1. What is HTML?

HTML stands for **HyperText Markup Language**. It is the standard markup language used to create the structure of a web page. It tells a browser which parts of the content are headings, paragraphs, links, images, lists, forms, tables, navigation areas, and other elements.

HTML is a *markup language*, not a general-purpose programming language. It describes document structure and meaning; it does not provide programming constructs such as loops and functions by itself.

Think of a web page as a building:
– HTML is the structure: rooms, doors, walls, and labels.
– CSS is the presentation: paint, spacing, colours, and arrangement.
– JavaScript is behaviour: switches, elevators, and interactive controls.

## 2. What does HyperText mean?

HyperText is text that can connect to other documents through hyperlinks. For example, clicking a link named **HTML Course** can open another page or a specific section of the same page.

The anchor element creates a hyperlink:

“`html
Visit Example
“`

The browser knows where to navigate because of the `href` attribute.

## 3. How does HTML work?

A simplified browser workflow is:

1. The browser requests an HTML document from a server or reads a local HTML file.
2. It parses the markup.
3. It creates a tree of objects called the **Document Object Model (DOM)**.
4. The browser combines the DOM with CSS and other resources.
5. It lays out and paints the page on the screen.

The DOM also allows JavaScript to find and update elements.

## 4. Your first HTML example

Create a file named `index.html` and type this code:

“`html

My First HTML Page

Hello, World!

Welcome to Cyber Code Academy.

I am learning frontend development.

“`

### Understand the code

– `` tells the browser to use modern HTML parsing.
– “ is the root element. The language helps browsers and assistive technologies interpret the text.
– “ contains metadata and resources; it is not the main visible content area.
– “ declares the character encoding.
– The viewport meta element helps the page fit mobile device widths.
– `` sets the browser-tab title.<br /> – “ contains the document content.<br /> – `</p> <h1>` represents the primary page heading.<br /> – `</p> <p>` represents a paragraph.</p> <p>### Expected browser output</p> <p>The browser tab says **My First HTML Page**. On the page you see a large heading, “Hello, World!”, followed by two paragraphs. The browser supplies default spacing and font styles.</p> <p>## 5. HTML, CSS, and JavaScript comparison</p> <p>| Technology | Main responsibility | Example |<br /> |—|—|—|<br /> | HTML | Structure and meaning | Heading, form, link |<br /> | CSS | Presentation and layout | Colour, grid, spacing |<br /> | JavaScript | Behaviour and logic | Menu toggle, validation |</p> <p>A professional frontend developer uses these technologies together while keeping responsibilities clear.</p> <p>## 6. HTML versions and modern HTML</p> <p>HTML has evolved over time. Modern HTML is maintained as a living standard. HTML5 introduced many features that are now part of everyday web development, including semantic elements, native audio/video, and improved form controls. For new projects, use the HTML doctype shown in this course rather than old version-specific doctypes.</p> <p>## 7. Common beginner mistakes</p> <p>– Saving the file as `index.html.txt` instead of `index.html`.<br /> – Writing visible content outside the body.<br /> – Forgetting the document type declaration.<br /> – Using HTML tags only to make text look bigger or bold.<br /> – Copying code without understanding what each part does.<br /> – Assuming that a form sends email automatically. A real form requires a submission handler or backend.</p> <p>## 8. Practice exercises</p> <p>**Exercise 1:** Create an `index.html` file with your own page title.</p> <p>**Exercise 2:** Add one `h1`, two `h2` headings, and four paragraphs.</p> <p>**Exercise 3:** Add a link to a learning website and explain what the `href` attribute does.</p> <p>**Exercise 4:** Open the page in a browser and inspect the elements using Developer Tools.</p> <p>## 9. Knowledge check</p> <p>1. What is the full form of HTML?<br /> 2. Why is HTML called a markup language?<br /> 3. What is the difference between the head and body elements?<br /> 4. What is the DOM?<br /> 5. Which technology is responsible for styling a page?<br /> 6. Does an HTML form send data to a server without a handler?</p> <p>## 10. Summary</p> <p>HTML gives web content structure and meaning. A browser parses the document and builds a DOM. CSS controls presentation and JavaScript adds behaviour. Every lesson in this course builds on these foundations.</p> <p>**Next lesson:** HTML Editors — create, save, preview, and debug HTML files.</p> </div></div> <nav class="cca-prevnext" aria-label="Tutorial navigation"> <div class="cca-prevnext-item cca-prevnext-prev is-empty"> </div> <div class="cca-prevnext-item cca-prevnext-next"> <a href="https://learn.cybercodeacademy.com/tutorials/html-editors-and-your-first-web-page/"> <span class="cca-prevnext-direction">Next Tutorial →</span> <strong>HTML Editors and Your First Web Page</strong> </a> </div> </nav> <div class="cca-cta"> <h3>Want to learn this professionally?</h3> <p>Explore practical IT training at Cyber Code Academy.</p> <a href="https://cybercodeacademy.com/courses/">View Academy Courses</a> </div> </main> <aside class="cca-right"> <section class="cca-toc-panel"> <h4>On this page</h4> <nav data-cca-toc aria-label="On this page"></nav> </section> <div class="cca-ad">Advertisement</div> <div class="cca-cta"> <h3>Cyber Code Academy</h3> <p>Professional training in Cloud, DevOps, Networking and Cyber Security.</p> <a href="https://cybercodeacademy.com/">Visit Academy</a> </div> </aside> </div> <footer class="cca-footer"> © 2026 Cyber Code Academy. All rights reserved. </footer> <script type="speculationrules"> {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/cca-tutorial-theme/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} </script> <script data-wp-strategy="defer" defer id="hostinger-reach-embed-js" src="https://cdn-reach.hostinger.com/js/embed.js"></script> <script id="cca-js-js" src="https://learn.cybercodeacademy.com/wp-content/themes/cca-tutorial-theme/assets/js/theme.js?ver=1.17.0"></script> <script id="cca-prism-core-js" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js?ver=1.29.0"></script> <script id="cca-prism-autoloader-js" src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js?ver=1.29.0"></script> <script id="wp-emoji-settings" type="application/json"> {"baseUrl":"https://s.w.org/images/core/emoji/17.0.2/72x72/","ext":".png","svgUrl":"https://s.w.org/images/core/emoji/17.0.2/svg/","svgExt":".svg","source":{"concatemoji":"https://learn.cybercodeacademy.com/wp-includes/js/wp-emoji-release.min.js?ver=7.1.2"}} </script> <script type="module"> /*! This file is auto-generated */ var e="script#wp-emoji-settings",t=document.querySelector(e);if(!(t instanceof HTMLScriptElement))throw new Error("Element missing: "+e);const r=JSON.parse(t.text),s=(window._wpemojiSettings=r,"wpEmojiSettingsSupports"),o=["flag","emoji"];function i(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(s,JSON.stringify(t))}catch(e){}}function c(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0);const r=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);return t.every((e,t)=>e===r[t])}function p(e,t){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var n=e.getImageData(16,16,1,1);for(let e=0;e<n.data.length;e++)if(0!==n.data[e])return!1;return!0}function u(e,t,n,r){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\udde8\ud83c\uddf6","\ud83c\udde8\u200b\ud83c\uddf6")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!r(e,"\ud83e\u1fac8")}return!1}function f(e,t,n,r){let a;const s=(a="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):document.createElement("canvas")).getContext("2d",{willReadFrequently:!0}),o=(s.textBaseline="top",s.font="600 32px Arial",{});return e.forEach(e=>{o[e]=t(s,e,n,r)}),o}function a(e){var t=document.createElement("script");t.src=e,t.defer=!0,document.head.appendChild(t)}r.supports={everything:!0,everythingExceptFlag:!0},new Promise(t=>{let n=function(){try{var e=JSON.parse(sessionStorage.getItem(s));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(o),u.toString(),c.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"});const a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=e=>{i(n=e.data),a.terminate(),t(n)})}catch(e){}i(n=f(o,u,c,p))}t(n)}).then(e=>{for(const n in e)r.supports[n]=e[n],r.supports.everything=r.supports.everything&&r.supports[n],"flag"!==n&&(r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&r.supports[n]);var t;r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&!r.supports.flag,r.supports.everything||((t=r.source||{}).concatemoji?a(t.concatemoji):t.wpemoji&&t.twemoji&&(a(t.twemoji),a(t.wpemoji)))}); //# sourceURL=https://learn.cybercodeacademy.com/wp-includes/js/wp-emoji-loader.min.js </script> </body> </html>