DEV Community

Boomika N
Boomika N

Posted on

Introduction to HTML Basics


1.What is HTML?
HTML stands for Hyper Text Markup Language. It is used to create web pages and structure content on the internet.
Every website we see is built using HTML.

2.What is and why do we use it?
is written at the top of every HTML document.

*why do we use it:
It tells the browser that this document is written in HTML5
It helps the browser display the page correctly
It avoids compatibility issues
It is not a tag it is a declaration
Example:
HTML


What is

Tag?
The tag contains information about the webpage.
It includes:
title
Meta data
Links to CSS
Scripts
The content inside is not directly visible on the webpage.
Example:
HTML

My First page

3.What is

Tag?
The tag is written inside the tag.
Purpose:
It shows the page name in the browser tab
Example:
HTML
HTML Basics
It will appear on the browser tab as: HTML Basics

4.What

Tag?
The tag contains the main content of the webpage.
Everything inside is visible to users.
Example:
HTML

Welcome

This is my first htmlpage.

5.What is Block Elements?
Block elements start on a new line, it takes full width of the page
Example:

to

6.What is Tag? means division It is used to group elements together Think of it like a container or box that holds other elements. Example: HTML

Welcome

This is inside a div.

7.What is

Tag?

means Paragraph It is used to write text in paragraph form Example: HTML

this is a Paragraph

It automatically starts on a new line
It is also a block element.

8.What is

to

Tags?
These are heading tags.
They are used to give titles and subtitles

Biggest Heading

Sightly smaller

Smallest heading Example:

main heading

sub title

small heading

is usually used for the main title of the page.

to

are used for subtopics
All heading tags are block elements.

9.What is Inline Elements?
Inline elements
Do not start on a new line
Take only required width
Example:

Top comments (0)