-
Hajipur, Bihar, 844101
Hajipur, Bihar, 844101
HTML5 Basics
HTML Introduction
HTML Editors
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML Styling and Design
HTML Links and Media
HTML Layout and Structure
HTML Tables
HTML Lists
HTML Block & Inline
HTML Div
HTML Classes
HTML Id
HTML Head
HTML Layout
HTML Responsive
HTML Computercode
HTML Semantics
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
Input Form Attributes
HTML Graphics
HTML APIs
HTML Advanced Topics
HTML stands for HyperText Markup Language. It is the standard language used to create web pages and describe their structure and content.
It uses tags/elements to mark up text, images, links, and other content to be displayed in a browser.
Example:
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a paragraph.</p>
</body>
</html>
HTML is not a programming language; it's a markup language.
It uses tags like <html>
, <head>
, <body>
, <p>
, <h1>
etc.
HTML tags usually come in pairs: an opening tag <tag>
and a closing tag </tag>
.
The browser does not display HTML tags but uses them to render content.
<!DOCTYPE html> <!-- Declares the HTML version -->
<html> <!-- Root element -->
<head> <!-- Metadata, title, etc. -->
<title>Title</title>
</head>
<body> <!-- Main content visible to users -->
<h1>Heading</h1>
<p>Paragraph text</p>
</body>
</html>
Tg | Description |
---|---|
<html> |
Root of the HTML document |
<head> |
Contains meta info |
<title> |
Sets the browser tab title |
<body> |
Main visible content |
<h1> |
Heading (H1 is largest) |
<p> |
Paragraph |
Q1. Create a simple web page with a heading and a paragraph.
Q2. Add a title to your HTML document.
Q3. Display three levels of headings.
Q4. Write a paragraph and make a word bold.
Q5. Create a page with two paragraphs.
HTML5 Basics
HTML Introduction
HTML Editors
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML Styling and Design
HTML Links and Media
HTML Layout and Structure
HTML Tables
HTML Lists
HTML Block & Inline
HTML Div
HTML Classes
HTML Id
HTML Head
HTML Layout
HTML Responsive
HTML Computercode
HTML Semantics
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
Input Form Attributes
HTML Graphics
HTML APIs
HTML Advanced Topics