Wednesday, 25 February 2026

HTML Basics for Beginners

HTML Basics for Beginners What is HTML? HTML(HyperText Markup Language) is the standard language used to create web pages. It structures the content on the web — like text, images, links, forms, and more. Basic Structure of an HTML Page Every HTML page follows this basic structure: My First Web page

Hello World!

This is my first web page

Explanation:

!DOCTYPE html - Document type declaraion for HTML5. Tells browser this is HTML5.

html - Root Element.

head - Page information(Meta, link, title).

body - Visible Content.

h1 - Heading

p - Paragraph.

---------------------------------------------------------------------------

Headings

Main Heading

Sub Heading

Smaller Heading

Sub-sub-section Title/h4>

Further subdivision
Least important heading

Headings go from h1 (largest) to h6 (smallest).

---------------------------------------------------------------------------

Links

Visit Google

a - Anchor tag

href - Link URL

---------------------------------------------------------------------------

Links Description

src - Image Path

alt - Alternative text

---------------------------------------------------------------------------

Lists

Unorderedlist

  • HTML
  • CSS
  • JavaScript

Orderedlist

  1. Step 1
  2. Step 2

---------------------------------------------------------------------------

HTML Attributes

Attributes give extra information about elements.

---------------------------------------------------------------------------

Forms Example





---------------------------------------------------------------------------

No comments:

Post a Comment

JavaScript map(), filter(), and reduce() Explained with Simple Examples

Most Useful HTML Tags map(), filter(), reduce() in JavaScript Explained with Examples JavaScript provides ...