Open your favorite text editor (like Notepad or Sublime Text) and create a new file. Save it with the name my_first_webpage.html.
Type the following code at the very beginning of your file to declare the document type and add the opening and closing <html></html> tags:
<!DOCTYPE html>
<html>
</html>
                                    Inside the <html></html> tags, add the opening and closing <head></head> tags and the opening and closing <body></body> tags:
<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
  </body>
</html>
                                    Inside the <head></head> tags, add the opening and closing <title></title> tags and type a title for your webpage inside them, like this:
<head>
  <title>My First Webpage</title>
</head>
                                    Inside the <body></body> tags, add the opening and closing <h1></h1> tags and type a heading for your webpage inside them, like this:
<body>
  <h1>Welcome to My First Webpage!</h1>
</body>