Basic To Html Chap 1

Basic To Html Chap 1



Why html is Used?

Html is used to create the structure of website It is used with css and java script to create
a dynamic website.you can create static pages using html & css. It is used in front end
developing

Which Software is Used to Run Html?

You can make html file on notepad that comes with windows or notepad++ for 
beginners i recommend using notepad but if you are fimiliar with it you can also
use Visual Studio which is professional.

Start to html

First of all open your notepad so i am using sublime text editor here.Now click on
file in left corner and press save as select any path in which you wanna save file
and name it as index.html its logo will be changed to your browser if you write
it properly



Now open notepad and type <!docktype html> <html></html> this tags show that we are writhing in html
now type <head></head between these tags type <title></title> between head title is
used to display your website name now add body tag<body></body> after head before closing html
All the work we have to do is done in body 



<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

</body>
</html>

Now type name of your website between title i am writing abantechofficial and save it 
now open your file it will show the name on top like this


<!DOCTYPE html>
<html>
<head>
<title>abantechofficial</title>
</head>
<body>

</body>
</html>

Now lets learn how to write text in it.For that we are using heading which from h1 to h6.
As i told you earlier ale the work we have to do is done in body.So we write down heading
in body.

so let's write it down
like this






IT should be displayed in browser like this

<!DOCTYPE html>
<html>
<head>
<title>abantechofficial</title>
</head>
<body>
<h1>This is my first heading</h1>
<h2>This is my first heading</h2>
<h3>This is my first heading</h3>
<h4>This is my first heading</h4>
<h5>This is my first heading</h5>
<h6>This is my first heading</h6>
</body>
</html>

Note

If Your page is not showing something remember to save every work by pressing
Crtl+s or click on file in top left corner and press save.

No comments

Powered by Blogger.