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
- Write the above code in notepad or in
any other text editor.
- save the file as .html file
- open the web browser (chrome or any
other browser).
- drag your file on the browser page
- reload the page and you will get the
output.
ABOUT THE CODE
- <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.
- <head>…. </head> this is
used to provide heading to the webpage.
- <title>….</title> anything
written in between the title opening and closing tag will act as the title
of the webpage.
- <body>…. </body> it
contains the things to be displayed on the screen.