Skip to main content

Introduction to HTML

HTML stands for Hyper Text Markup Language that is used to create web pages, tells the browser how display content. It is used to define the structure of a web-page.

Example:

<!DOCTYPE html>

<html>

<head>

<title>page title</title>

</head>

            <body>

            <h1>this is heading</h1>

            <p>this paragraph>

            </body>

</html>

Explanation:

<!DOCTYPE html> defines that this document is HTML.

<html> is root code of page.

<head> contains meta information of html page.

<title> is use to define title of page and display in browser bar.

<body> is used to define body  of page and contains the content that is shown in browser which are paragraphs ,headings ,imeages etc.

<h1> uses for large heading

<p> uses for paragraph

 

HTML ELEMENT:

Html element consists of starting tag, content and ending tag.

For example: <h2> this is heading </h2>

                          <h2> is starting tag, “this is heading” is content and </h2> is ending tag.it is called html element.

 

You can use Chrome, Firefox, and Microsoft Edge to display or read html pages.

 

Introduction to HTML,

I hope you like the post ,please don't hesitate to share my post to your friends.Thanks

Comments