First html program (lt 2)

·

1 min read

Whole program is written inside <html> tag, <head> stores information for <body>.

Inside <head> there is a tag called <title> which is used to give the name of the website.

ex. google , yahoo, title of web page in the below example.

Inside <body> we write the information which has to be shown in web page.

META DATA - data about data is called metadata.

if after running the below code in vscode or any other text editor you see http://127.0.0.1/ it means your system will now act as a local host

. lt1 html : https://hashnode.com/post/clnj6q6sp000108mm7f7oc893

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title> title of web page </title>
  </head> 
//   head contains page meta data
     <body> hello wolrd!!!
// what to show inside the web page
</body>
</html>