Skip to main content

HTML APIs

HTML Basic for beginners

HTML Basics for Beginners: Your First Steps in Web Development

Basic HTML document structure

HTML (HyperText Markup Language) is the foundation of all websites. It provides the structure and content of web pages. Let's explore the basics every beginner should know.

1. HTML Document Structure

Every HTML document follows a standard structure:

<!DOCTYPE html>
<html>
<head>
    <title>Page Title</title>
</head>
<body>
    <h1>My First Heading</h1>
    <p>My first paragraph.</p>
</body>
</html>

2. Common HTML Elements

  • <h1> to <h6> - Headings
  • <p> - Paragraphs
  • <a> - Links
  • <img> - Images
  • <div> - Divisions/sections
Common HTML elements visual guide

3. Creating Your First HTML Page

Follow these simple steps:

  1. Open a text editor (Notepad, VS Code, etc.)
  2. Type the basic HTML structure
  3. Add some content between the <body> tags
  4. Save the file with .html extension
  5. Open it in a web browser

Congratulations! You've just created your first web page. In our next tutorial, we'll explore CSS to make your page visually appealing.

Comments