<tag attribute(name)="attribute(value)">content</tag>
HTML Boilerplate with facebook meta-tags, twitter meta-tags, Bootstrapp (CSS CDN, JS and JS dependencies jQuery & Popper.js) and fontawesome
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<!-- Facebook Open Graph data -->
<meta property="og:url" content="https://www.myurl.com/">
<meta property="og:type" content="website">
<meta property="og:title" content="">
<meta property="og:description" content="">
<meta property="og:image" content="">
<meta property="og:locale" content="en_US">
<!-- Twitter Card data -->
<meta name="twitter:card" content="">
<meta name="twitter:site" content="@mywebsite">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:creator" content="@mywebsite">
<meta name="twitter:image:src" content="">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/ae46c9edb9.js" crossorigin="anonymous"></script>
<!-- My CSS -->
<link rel="stylesheet" href="style.css">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<!-- jQuery first, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
<table>
<thead> <!-- table head -->
<tr>
<th>xxx</th>
<th>xxx</th>
</tr> <!-- table row -->
</thead>
<tbody> <!-- table body -->
<tr>
<td>xxx</td> <!-- cell -->
<td colspan="2">xxx</td> <!-- merge 2 columns -->
<td rowspan="2">xxx</td> <!-- merge 2 rows -->
</tr>
</tbody>
<tfoot> <!-- table footer -->
<tr>
<td>xxx</td>
</tr>
</tfoot>
</table>
A form is defined by a <form> tag. Inside you define :
<form action="/example.html" method="POST">
</form>
<input> tags allows to create fields where visitors can type information. Input tags must have different attributes:
label tags are paired with input and serve as their "display name". You pair label with an input thanks to the attribute for:
<form action="/example.html" method="POST">
<label for="meal">What do you want to eat?</label>
<input type="text" name="food" value="Already pre-filled" id="meal">
<input type="submit" value="Submit">
</form>
<select> tag allows you to create dropdown lists. Inside the select tags you need <options> tags each with a value with your different options:
<form action="/example.html">
<label for="lunch">What's for lunch?</label>
<select name="lunch" id="lunch">
<option value="pizza">Pizza</option>
<option value="pizza">Curry</option>
<option value="pizza">Salad</option>
<option value="pizza">Ramen</option>
<option value="pizza">Tacos</option>
</select>
<input type="submit" value="Submit">
</form>
<datalist> tag also create a dropdown but inside a text field, so that users can type into it to easily find options. Inside the datalist you put <options> tags. The <input> tag where the <datalist> is must have a list attribute with the value of the datalist id
<form action="/example.html">
<label for="city">Ideal city to visit?</label>
<input type="text" list="cities" id="city" name="city">
<datalist id="cities">
<option value="New Yor City"></option>
<option value="Tokyo"></option>
<option value="Barcelona"></option>
<option value="Mexico"></option>
<option value="Bandol"></option>
</datalist>
<input type="submit" value="Submit">
</form>
<textarea> tags are used to create a bigger text field. If you want a default text you need to include it between the opening and closing textarea tags. This field can take arguments: