Html code snippets

sahil kirtane
HTML Code Snippets
HTML Code Description
<h1>Hello World!</h1>
Displays a heading with "Hello World!" text.
<p>This is a paragraph.</p>
Represents a paragraph of text.
<img src="image.jpg" alt="Image">
Inserts an image with the specified source and alternate text.
<a href="https://example.com">Link</a>
Creates a hyperlink to the specified URL.
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>
Defines an unordered list with three items.
<ol>
  <li>Item 1</li>
 
  <li>Item 2</li>
  <li>Item 3</li>
</ol>
Defines an ordered list with three items.
<div>This is a div element.</div>
Creates a generic container for other HTML elements.
<input type="text" placeholder="Enter your name">
Inserts an input field for text input with a placeholder text.
<button>Click me</button>
Creates a clickable button.
<table>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>Cell 1</td>
    <td>Cell 2</td>
  </tr>
</table>
Defines a table with two rows and two columns.