Total Pageviews

1,042

Monday, 28 December 2015

How to create a simple web page

Before  i start let me discuss little about the internet ,the internet its a collection of network of computers where one its a sever and others are client .In the internet webpages its being programmed by HTML language and CSS language  and in advance projects java and other programming languages are embed in to webpages to performed certain required task .But for now i will limit it to HTML only .

In html tags are the fundamental elements use in creating a web page.eg This an example of paragraph  <p>  tag and this its close  </p> .Before we start open notepad in your computer .

1. First step
   Write the code <html>  and closed it </html>

2.Second step.
 withen the <html>tag  open another tag called header  and close it <head> </head>
your codes will look like this
                                       <html>
                                      <head>
                                     </head>
                                     </html>

3.Third step.
 The next will be title tag ,put the <title> tag withen the header tag and close it <title></title>,withen two  the title tags put discription of the webpage there .this will appear a the top of the tap of the browser you run the code. i will write "My First webpage".
your codes will look like this
                                       <html>
                                      <head>
                                     <title>My First webpage</title>
                                     </head>
                                     </html>

4.Fourth step.
 Now we will put the <body> tag this tag contains everything that suppose to be in your webpage .
your codes will look like this
                                       <html>
                                      <head>
                                     <title>My First webpage</title>
                                     </head>
                                     <body>
                                     </body>
                                     </html>
lets put some thing in the body tag .now we will use the paragraph tag i was talking about
                                     
                                      <html>
                                      <head>
                                     <title>My First webpage</title>
                                     </head>
                                     <body>
                                      <p>  I am creating webpage and its interesting and fantastic</p>
                                     </body>
                                     </html>
5. Fifth step.
        Now create a new folder and name it website and save the file you created inside the folder.,You must save the file with extension (.html) or else it will not work. so i will save mine myfirst.html

This is how it will look when you run it.running it you can just double click the file it will open a default browser

Give a try and see you next time..

No comments:

Post a Comment