Hackforge Academy

Category: html_css

what is html

Published on 23 Jun 2026

Explanation

HTML (HyperText Markup Language) is the standard language used to create web pages. Every HTML document starts with a basic structure that includes the DOCTYPE declaration, html, head, and body tags.

Code:

<!DOCTYPE html>
<html>
<head>
    <title>My First Page</title>
</head>
<body>
    <h1>Welcome to HTML</h1>
</body>
</html>

Explanation

The <!DOCTYPE html> declaration tells the browser that the document is written in HTML5. It should always be the first line of an HTML document.

Code:

<!DOCTYPE html>
<html>
<body>
    <p>This page uses HTML5.</p>
</body>
</html>

Explanation

The <html> tag is the root element of an HTML page. All other HTML elements are placed inside this tag.

Code:

<html>
    <head></head>
    <body>
        <h1>Root Element Example</h1>
    </body>
</html>

Explanation

The <head> section contains metadata about the webpage such as the title, character encoding, stylesheets, and scripts. This content is not displayed on the page.

Code:

<head>
    <title>HTML Basics</title>
    <meta charset="UTF-8">
</head>

Explanation

The <body> section contains all visible content such as headings, paragraphs, images, links, and forms that users interact with on the webpage.

Code:

<body>
    <h1>HackForge Academy</h1>
    <p>Learn HTML, CSS, JavaScript, 
and React.</p>
</body>

๐Ÿš€ Learn Spring Boot with real-world projects

๐Ÿ’ก Build REST APIs step by step

๐Ÿง  Improve backend development skills

๐ŸŽฏ Get career-ready practical training

Join Our Free WhatsApp Community

Direct access to niche-specific mentors and peers on WhatsApp.

๐Ÿ

Python Community

Discuss Django, FastAPI, AI integration, and automation scripts with 15k+ developers.

Join Python Community
โš›๏ธ

React Community

Master Next.js, Framer Motion, and State Management. Share your latest UI components.

Join React Community
โ˜•

Java Community

Deep dives into Spring Boot, Microservices architecture, and high-performance backend ops.

Join Java Community