Friday, 31 July 2015

What does Html Stands For

Hi,my name is Danyal and i am going to teach you about html.Html is a very interesting.

Introduction:

Html stands for hyper text markup language.
Markup language is set of markup tags.
Html documents are described by html tags.

Example:

<!Doctype html>
<html>
<head>
<title>page title</title
</head>
<body>
<h1>this is for heading</h1>
<p>this is for paragraph</p>
</body>
</html>

Tags of html:

tags of html are keywords and are surrounded by angle tags<..... >
html tags comes in pairs like <h1> and</h1>
first tag is starting tag and end tag comes same as starting tag but with slash before tag name.

The <!Doctype>:

the doctype tag helps the browser to display web page correctily
because there are many doctype on web
To display web correctly the  browser have to know both type and version.
the doctype is not sensitive all cases are acceptable:
<!doctpye html>
<!Doctype html>
<!doctype HTML>

Write html using notepad:

I recommend you to write html you have to use notepad.
I beleive simple text editor is great to learn html.
To write html you have to follow simple 4 steps:

Step 1:Open Notepad:

In window 7 you can open notepad by clicking on the start icon on your left bottom of screen and write on search option notepad and open notepad.
Or if you want to open notepad on window 8 open the start screen and open notepad.

Step2:Write Html:

Write some html on your notepad or copy from somewhere like
<!Doctype html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>this is for heading</h1>
<p>this is for paragraph</p>
</body>
</html>

Step3:Save Html Page:

Save html page
Select save as in your notepad
Name the file "pad.html" or any other name ending with .html or .htm
UTF-8 encoding is used for html.

Step:4:Open Html page on your browser:

Open the saved html file named as pad on your personal browser and you will be glad to see what you have written is on web page.

No comments:

Post a Comment