Smart Boy Designs Forums » HTML & CSS

How to start an HTML document and view it using your favorite Web Browser

(1 post)
  • Started 9 months ago by admin
  1. Someone recently asked me how to start a web page and view it on the computer. Just use the following code - and check out my explanations further down the post.

    <html>
    
    <head>
    <title>Add the title of your webpage here</title>
    </head>
    
    <body>
    This is where all of the code will go that the VIEWER will see.
    </body>
    
    </html>

    As you can see - to start an HTML web page, it's pretty simple actually. You need the <html> tags showing the browser that this is html they are dealing with, and then the BODY and HEAD tags. Everything in the <head></head> area is NOT seen by the viewers. Everything in the <body></body> area IS seen by the end viewer.

    When you save this bit of code (using Notepad to type it out), save it as index.html

    Then you can right click on the file and open with your favorite browser. Whoila! Your first web page! Play around with this code a little bit - and once you start to understand how to start a page, come back and ask more questions!

    *Please note that just by making your web page - it doesn't mean its online yet! You are only viewing your web page locally on your computer.

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.

About Smart Boy Designs

Amongst many things, the Smart Boy Designs blog is meant to be a fun, educational location for the connection of web development knowledge for all online users. I have an intense passion for the world of web development - and hopefully this engaging energy transfers seamlessly through my writing. Rest your weary fingers - and stay for a while. Above all - enjoy!

Sponsors

Plurk with Me!