HTML AND CSS TUTORIAL 1

HTML & CSS BASICS..

  This is the basic HTML code which shows the "HELLO WORLD" on the screen


<!doctype html>
<html>
    <head>
      <title>My First Website</title>
    </head>
    <body>
      <h1>HELLO WORLD</h1>
    </body>
</html>



DESCRIPTION

  1. Write the above code in notepad or in any other text editor.
  2. save the file as .html file
  3. open the web browser (chrome or any other browser).
  4. drag your file on the browser page
  5. reload the page and you will get the output.


ABOUT THE CODE

  1. <html>…. </html>   this is a tag used to tell that the file is an html document. Anything in the code must be written in between the opening and closing html tag.
  2. <head>…. </head> this is used to provide heading to the webpage.
  3. <title>….</title> anything written in between the title opening and closing tag will act as the title of the webpage.
  4. <body>…. </body> it contains the things to be displayed on the screen.








     

Share this

Related Posts

Previous
Next Post »

Powered by Blogger.

Popular Posts