Skip to content

Instantly share code, notes, and snippets.

@Sasha-hk
Created August 5, 2022 13:14
Show Gist options
  • Save Sasha-hk/f1e5cf3cbd0c8a01dac99badfd476e66 to your computer and use it in GitHub Desktop.
Save Sasha-hk/f1e5cf3cbd0c8a01dac99badfd476e66 to your computer and use it in GitHub Desktop.

Html

Base structure

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>

  <body>
    Content...
  </body>
</html>

Tags

<h1>Title 1</h1>
<h2>Title 2</h2>
<h3>Title 3</h3>
<h4>Title 4</h4>
<h5>Title 5</h5>
<h6>Title 6</h6>

<p>paragraph</p>

<a href="">link</a>

<span>text ...</span>

<div>block</div>

<section>large section</section>

<img src="https://google.com/..." alt="alternative text, if image not loaded">

<input type="text">
<input type="password">
<input type="email">
<input type="color">
<input type="checkbox">
<input type="date">
<input type="datetime">
<input type="datetime-local">

<input type="radio" name="unique-name">
<input type="radio" name="unique-name">

<input type="text" placeholder="text...">

<button>button</button>
<button type="reset">reset button</button>
<button type="submit">submit button</button>

<form action="/">
  <label for="">Form</label>

  <div>
    <input type="text" placeholder="username">
    <input type="password" placeholder="password">
    <input type="email" placeholder="email">
  </div>

  <div>
    <button type="reset">reset form</button>
    <button type="submit">submit</button>
  </div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment