Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape

HTML Basic

HTML CODES & EXAMPLES

HTML Basic

Learn the basic structure of HTML and create your first web page using simple and beginner-friendly examples.

01

What is HTML?

Introduction to HyperText Markup Language

HTML stands for HyperText Markup Language. It is the standard markup language used to create and structure web pages. HTML tells the browser how different elements such as headings, paragraphs, links, images and buttons should be displayed.

HTML uses tags and elements to organize the content of a web page.

02

Basic HTML Structure

The basic structure of an HTML document

HTML
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0">

  <title>My First Web Page</title>
</head>

<body>

  <h1>Hello World!</h1>

  <p>
    This is my first HTML web page.
  </p>

</body>

</html>
03

Understanding the Structure

Important parts of an HTML document

<!DOCTYPE html>

Tells the browser that the document uses modern HTML.

<html>

The root element of the complete HTML document.

<head>

Contains metadata, title, styles and other information.

<title>

Defines the title displayed in the browser tab.

<body>

Contains the visible content of the web page.

<h1>

Creates a main heading on the page.

04

Common HTML Tags

Frequently used HTML elements for beginners

Tag
Purpose
Example
<h1>
Main heading
Website Title
<p>
Paragraph
Hello World
<a>
Link
Visit Website
<img>
Image
Photo
<button>
Button
Click Me
<div>
Container
Content Box
06

Live Example

See the HTML code output directly in your browser

LIVE PREVIEW
07

Practice Task

Try creating your own HTML page

🎯 Your Task

Create a simple webpage containing:

  • A main heading
  • A paragraph
  • Your name
  • Your course name
  • A link to a website
  • A button
NEXT HTML LESSON

HTML Headings

Learn how to create H1 to H6 headings.

Next →
`;document.getElementById( "sncecLivePreview" ).srcdoc = code;}document.addEventListener( "DOMContentLoaded", function(){sncecRun();} );

HTML Runner

  • 16/08/2026

HTML Headings

  • 16/08/2026

Html Codes

  • 16/08/2026

Leave a Reply

Your email address will not be published. Required fields are marked *