HTML Tutorial


Beginners To Experts


The site is under development.

HTML Tutorial

  • HTML stands for Hyper Text Markup Language.
  • It is a standardized markup language that is used to create web pages.
  • It uses tags to structure content.
  • An HTML document starts with <!DOCTYPE html> and includes <html> , <head> , and <body> elements.

Example


Document Structure:

Defines the basic structure of an HTML document.
It includes tags like < html > , < head>, and < body>

Text Formatting

HTML provides tags for text formatting such as headings, paragraphs, bold, italics, and line breaks.

Example

Lists

HTML supports ordered and unordered lists using <ol> and <ul>, with list items represented by <li> tag.

Example

Links

  • Anchor tags <a> create hyperlinks.
  • Links can point to external websites or internal sections within a page.

Forms

Forms are created with <form>, containing input elements like text fields, radio buttons, checkboxes, and buttons.

Output

Tables:

HTML tables are structured with <table>, <tr> (table row), <td> (table data), and <th>(table header).

Example

Output

Name Age
John 25

Semantic HTML:

Semantic elements add meaning to the structure and content of web pages.
It includes <header>, <footer>, <nav>, <article>, and <section>.

Example

Output:

Semantic HTML

Website Header

Article Title

Content of the article...

Another Article

More content...

© 2024 Your Website

Multimedia

Embedding audio and video elements using <audio> and <video>.
It includes external content with <ifram>.

Example

Output

Creating more advanced forms with dropdown menus (<select>), file uploads (<input type="file">), and form validation.

Example:

Output:

Advanced Links

Linking to specific parts of a page with anchors and using named anchors.

Example:

Output:

Go to Section 2

Section 2

This is the content of Section 2.

Metadata

Use meta tags for SEO () and adding a favicon ().

Example

Output:

Your Website Title

HTML5 APIs

HTML5 introduced several APIs that enhance web development, such as the Geolocation API and Local Storage.

Geolocation API

The Geolocation API provides information about the user's location.

Example

Output:

Local Storage

Local Storage allows you to store data on the client's browser.

Canvas and SVG

Canvas and SVG are used for drawing graphics on the web.

Canvas

The <canvas> element allows dynamic, scriptable rendering of 2D shapes and bitmap images.


SVG

Scalable Vector Graphics (<svg>) is an XML-based vector image format.

Output

Web Components

Web Components enable the creation of reusable components encapsulated in their own HTML, CSS, and JavaScript.

Custom Elements

Define a custom element using the custom-element tag.

Example

Output

Responsive Web Design

Make the website to be responsive to different screen sizes with the use of viewport meta tag and the media queries.

HTML Templating

Using the <template> tag for client-side templating.

Web Accessibility (WCAG)

Designing for inclusivity by following the Web Content Accessibility Guidelines.

Output

A description of the image