Introduction To HTML
Introduction To HTML
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.
[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,
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.
Coding
<!DOCTYPE html>
<html>
<head>
[email protected] Page 2
<title>
</title>
<style>
</style>
</head>
<body>
<h1> //heading
</h1>
<p>//paragraph
</p>
</body>
</html>
Result
[email protected] Page 3