โ— HTML BASICS ยท CHAPTER 03

Features of HTML

HTML provides the basic building blocks for webpages. Its features make it possible to structure content, connect pages, create forms, add media, support accessibility, and work together with CSS and JavaScript. In this lesson, you will learn the important HTML features with simple examples.

๐ŸŽฏ What you'll learn
  • How HTML structures webpage content
  • Why semantic HTML is important
  • How links, images, audio, and video work
  • How HTML forms collect user input
  • How HTML supports accessibility and SEO
  • How HTML works with CSS and JavaScript

๐Ÿ’ก HTML Features in Simple Words

A feature is simply something HTML can do for a webpage. For example, HTML can create headings, paragraphs, links, images, lists, tables, forms, and media. Instead of writing everything from scratch, HTML gives browsers a standard way to understand the content.

๐Ÿ  Think of HTML as a building system

A house needs rooms, doors, windows, and labels. A webpage needs headings, sections, links, images, forms, and other content. HTML provides the elements used to build that structure.

๐Ÿš€ The Most Important Features of HTML

01

Simple & Easy

HTML uses readable tags such as <h1>, <p>, and <img>.

02

Page Structure

HTML organizes content into headings, paragraphs, sections, lists, tables, forms, and more.

03

Hyperlinks

Use the <a> element to connect pages, files, sections, email addresses, and other resources.

04

Multimedia

HTML supports images, audio, video, and embedded content through standard elements.

05

Forms

Forms provide controls such as text boxes, email fields, checkboxes, radio buttons, and submit buttons.

06

Semantic HTML

Elements such as <header>, <nav>, <main>, and <footer> describe meaning.

07

Graphics

HTML works with SVG and Canvas for graphics and visual content.

08

Accessibility

Correct headings, labels, landmarks, alternative text, and native controls help assistive technologies.

09

SEO Friendly

Meaningful headings, titles, links, and semantic structure help search engines understand page content.

10

Works with CSS & JS

HTML provides structure, CSS provides presentation, and JavaScript adds behavior and interactivity.

1๏ธโƒฃ HTML Creates Page Structure

One of HTML's main jobs is to tell the browser what each part of a webpage is. A browser can then build the page structure from those elements.

๐Ÿ“„ page.htmlStructure
<h1>ManaCoding</h1>
<p>Learn programming step by step.</p>
<ul>
  <li>HTML</li>
  <li>CSS</li>
  <li>JavaScript</li>
</ul>
๐Ÿ’ก
Remember: HTML describes what the content is, not how it should look.

2๏ธโƒฃ HTML Creates Hyperlinks

The <a> element creates hyperlinks. This is one of the most important features of the web because pages can connect to other pages and resources.

๐Ÿ”— Link exampleAnchor element
<a href="https://manacoding.com">Visit ManaCoding</a>

The href attribute tells the browser where the link should go.

3๏ธโƒฃ HTML Supports Multimedia

Modern HTML provides elements for common media instead of requiring custom markup for every basic use case.

<img>
Displays an image. Use alt text to describe meaningful images.
<audio>
Embeds audio content in a webpage.
<video>
Embeds video content with browser controls when requested.
<iframe>
Embeds another document or supported external content.

4๏ธโƒฃ HTML Creates Forms

Forms allow users to enter information such as names, email addresses, passwords, search terms, selections, and other values.

๐Ÿ“ login.htmlForm example
<form>
  <label for="email">Email</label>
  <input id="email" type="email" name="email">

  <button type="submit">Login</button>
</form>
โš ๏ธ
HTML collects and describes the input. Validation, authentication, and business rules are handled by appropriate browser and server-side logic.

5๏ธโƒฃ HTML Supports Semantic Elements

Semantic elements tell developers, browsers, search engines, and assistive technologies what a section means.

<header>Introductory content / header
<nav>Navigation links
<main>Main content of the page
<section>Thematic section
<article>Self-contained content
<footer>Footer information

6๏ธโƒฃ HTML Helps Accessibility and SEO

โ™ฟ Accessibility
Use logical headings, labels, native controls, meaningful link text, and useful alternative text.
๐Ÿ”Ž SEO
Clear titles, headings, semantic structure, descriptive links, and useful content help machines understand the page.
โœ…
Good HTML is meaningful HTML. Don't choose an element only because its default appearance looks right.

7๏ธโƒฃ HTML Works with CSS and JavaScript

HTMLStructure & meaning
CSSAppearance & layout
JavaScriptBehavior & interaction

For example, HTML can create a button, CSS can make it look like a primary action button, and JavaScript can respond when the user clicks it.

๐Ÿง‘โ€๐Ÿ’ป Try It Yourself

Change the HTML below and click Run. This is the fastest way to understand what HTML features actually do.

features.html
๐Ÿ“ Edit Code
๐Ÿ‘ Live Preview
๐Ÿ’ก Try changing the heading, adding an image, or creating another link.

โš ๏ธ Common Mistakes Beginners Make

โŒ Using HTML for styling

Don't add lots of presentational markup just to make text look a certain way. Use CSS for presentation.

โŒ Choosing tags by appearance

Don't use a heading because it looks large. Use headings according to the content structure.

โŒ Missing image alternative text

Meaningful images should normally have useful alt text.

โŒ Ignoring labels in forms

Connect form controls with descriptive labels so users can understand what information is required.

๐ŸŽฏ Practice

Beginner

Create a page with a heading, paragraph, image, and link.

Intermediate

Create a course registration form with name, email, course selection, and submit button.

Challenge

Build a semantic ManaCoding course page using <header>, <nav>, <main>, <section>, and <footer>.

๐Ÿ“ Quick Summary

Remember these key HTML features:
  • HTML creates the structure and meaning of webpage content.
  • HTML provides links, forms, lists, tables, images, audio, video, and more.
  • Semantic elements make page structure clearer.
  • Good HTML supports accessibility and search-engine understanding.
  • HTML works together with CSS and JavaScript to build complete web experiences.

๐Ÿ’ผ Interview Questions

Q1. What are the main features of HTML?

HTML provides document structure, hyperlinks, forms, multimedia elements, semantic elements, graphics support, and a standard way to describe webpage content.

Q2. What is semantic HTML?

Semantic HTML uses elements whose names describe their purpose, such as <nav>, <main>, <article>, and <footer>.

Q3. How does HTML support accessibility?

By providing meaningful structure, headings, labels, alternative text, native controls, and other information that assistive technologies can use.

Q4. Can HTML create dynamic behavior?

HTML provides structure, but dynamic behavior is normally implemented with JavaScript and related web APIs.

Q5. What is the role of CSS and JavaScript with HTML?

HTML provides structure and meaning, CSS controls presentation, and JavaScript adds behavior and interaction.

๐Ÿš€ What Should You Learn Next?

Now that you know the important features of HTML, continue with the next HTML Basics topic and learn why HTML evolved the way it did.

โžก๏ธ
Next: Continue with the HTML Basics section.