What's a tag again?
Tags tell the browser what to do with what's inside of them.
This is the basic layout of a tag.
<h1>stuff</h1>
The <h1>
is the starting h1
tag, and the </h1>
is the ending h1
tag.
Any statring tag is basically the name of the tag within angular brackets. So, a starting b
tag would be <b>
.
An ending tag is similar, but there is a forward slash before the name. So, an ending b
tag would be </b>
.
Anything between the starting tag and ending tag is affected by it. In this example, the word 'stuff' would become a big, bold header.
So what tags are there?
Good question! Here are a load of them:
-
<p>
Makes a paragraph. -
<h1>
Makes a header. -
<h6>
Makes a very small header. -
<b>
Makes text bold. -
<em>
Makes text italic.
And throughout this series, you'll learn about a lot more tags!