WRITE HTML PROGRAMME FOR ADDING SUBHEADINGS AND LINK

 ADDING SUBHEADINGS AND LINK 



<!DOCTYPE html>
<html>
  <head>
    <title>My Webpage</title>
  </head>
  <body>
    <h1>Welcome to My Webpage</h1>
    <h2>About Me</h2>
    <p>Hi, my name is Ajay and I am a web developer.</p>
    <h2>My Projects</h2>
    <ul>
      <li><a href="https://www.example.com/project1">Project 1</a></li>
      <li><a href="https://www.example.com/project2">Project 2</a></li>
      <li><a href="https://www.example.com/project3">Project 3</a></li>
    </ul>
  </body>
</html>

In this program, the <h2> element is used for the subheading "About Me", and the <a> element is used for the link to each project. The href attribute in the <a> element specifies the URL for the link.





Post a Comment

Previous Post Next Post