0% found this document useful (0 votes)
26 views3 pages

Introduction To HTML

Html stands for hypertext markup language. This language use for make our web page and web page include everything as that stylish, heading, block, margin and so on.

Uploaded by

Ajmal Farooq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

Introduction To HTML

Html stands for hypertext markup language. This language use for make our web page and web page include everything as that stylish, heading, block, margin and so on.

Uploaded by

Ajmal Farooq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Lesson 1

Introduction to HTML
Html stands for hypertext markup language. This language use for make our web
page and web page include everything as that stylish, heading, block, margin and so on.

Syntax

<!DOCTYPE html>

<html>

<head>

<title>

</title>

<style>

</style>

</head>

<body>

<h1,2,3,4,5,6> //heading

</h1,2,3,4,5,6>

<p>//paragraph

</p>

</body>

</html>

This is the syntax which use in every html coding. Now we discuss every html tag purpose
in briefly but before its we need know difference between tag and attributes.

So we continue our lesson.

[email protected] Page 1
What is tag in html?
Tag is basic structure in html which defines the document if tag change then whole
document is change. For example: <body> </body>

What is attributes?
Attributes define in tag but does not structure change if the attributes is change. It define
with value or name for example,

Language attribute use in html tag <html lang=en_UK> </html>

What is <!DOCTYPE html>?


www.google.com.pk/?gws_rd=cr&ei=4D0EWOeFEcSsUf_OmtAM#q=doctype+html+means

The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what
version of HTML the page is written in. In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD,
because HTML 4.01 was based on SGML.

Define head?
Head use in html. If anything describe in head then use head tag.

Style tag
Style tag for use stylish our page in css html.

Title tag
Title define the title of our web page.

Body
Body is main section of the html. In this section all html work include heading, pic, audio,
video and everything.

Now we apply syntax and see result,

Coding

<!DOCTYPE html>

<html>

<head>

[email protected] Page 2
<title>

My First HTML page

</title>

<style>

</style>

</head>

<body>

<h1> //heading

</h1>

<p>//paragraph

</p>

</body>

</html>

Result

[email protected] Page 3

You might also like