In rough order of how much we use them:
<p>Hello</p>
→
Hello
<h1>Hello</h1>
→
<h2>Hello</h2>
→
<h3>Hello</h3>
→
<h4>Hello</h4>
→
<h5>Hello</h5>
→
<h6>Hello</h6>
→
Spans can go inside other text tags.
<p>Hello <span>World</span></p>
→
Hello World
Divs are rectangles which can contain other elements:
<div>
<p>Hello</p>
<div>
<p>World</p>
</div>
</div>
→
Hello
World
<img>
tags can be used to load .jpg
, .png
, .svg
files
<img src="/static/dog.jpg" />
→
<a href="/">Link Text Goes Here</a>
<a href="anotherPageDeeper">Link Text Goes Here</a>
<a href="https://google.com">Google</a>
→ Google
<html>
<head>
<title>website title</title>
</head>
<body>
<p>Website goes here!</p>
</body>
</html>
<input />
→
<input type="password"/>
→
<input type="checkbox" />
→
<input type="submit" />
→
<input
type="radio"
id="contactChoice1"
name="contact"
value="email"
/>
<label for="contactChoice1">Email</label>
<input
type="radio"
id="contactChoice2"
name="contact"
value="phone"
/>
<label for="contactChoice2">Phone</label>
<input
type="radio"
id="contactChoice3"
name="contact"
value="mail"
/>
<label for="contactChoice3">Mail</label>
→
<select>
<option value="">Please choose an option</option>
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="hamster">Hamster</option>
</select>
→
<script src="javascript.js"></script>
<script>
console.log('Hello World')
</script>
<link>
<head>
<link href="main.css" rel="stylesheet">
</head>