Steps to Create an HTML Script using Notepad:

If you are really interested to learn or test a HTML script, then here are the steps. There are plenty of tools to create webpages using HTML codes. But I am going to give you the most simple tool to learn HTML.The tool, you will need to use a text editor like “Notepad (for Windows).”

Steps :

  1. Open Notepad
  2. Create a New Document (copy and paste the code given below)
  3. Save File in HTML
  4. View the saved File in a Web browser

The Output

The Code

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.dropbtn {
  background-color: blue;
  color: white;
  padding: 25px;
  font-size: 16px;
  border: none;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: Yellow;
  min-width: 160px;
  box-shadow: 0px 6px 14px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 25px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {background-color: grey;}
.dropdown:hover .dropdown-content {display: block;}
.dropdown:hover .dropbtn {background-color: red;}
</style>
</head>
<body>
<div class="dropdown">
  <button class="dropbtn">Main Topic</button>
  <div class="dropdown-content">
    <a href="#">Sub Topic 1</a>
    <a href="#">Sub Topic 2</a>
    <a href="#">Sub Topic 3</a>
    <a href="#">Sub Topic 4</a>
  </div>
</div>
</body>
</html>