html code snippets

sahil kirtane
<!DOCTYPE html>
<html>
<head>
  <title>Hello World</title>
</head>
<body>
  <h1>Hello, World!</h1>
</body>
</html>
<h1>Heading 1</h1>
<p>This is a paragraph.</p>
<a href="https://example.com">Link</a>
<img src="image.jpg" alt="Image">
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>
<ol>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ol>
<input type="text" placeholder="Enter your name">
<button>Click Me</button>
<form action="/submit" method="post">
  <input type="text" name="username">
  <input type="password" name="password">
  <button type="submit">Submit</button>
</form>
<table>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>Data 1</td>
    <td>Data 2</td>
  </tr>
</table>
<div id="myDiv">Content</div>
<span>This is a span element</span>
<header>This is the header</header>
<nav>Navigation links</nav>
<section>This is a section</section>
<aside>Sidebar content</aside>
<footer>This is the footer</footer>
<script src="script.js"></script>
<style>
  h1 {
    color: blue;
  }
</style>