Inspired by CS50 WebTrack
Thanks to w3schools
HTML is the markup language that the web is built on. It is used to build websites. The latest version is HTML5.
The specification mentions 18 tags. This table contains key information about each one.
Any other element will be explained in the paper.
tag | use | code | output |
---|---|---|---|
<html>
|
To contain all the other HTML elements |
|
N/A |
<head>
|
To hold the metadata for the page. |
|
![]() |
<title>
|
To put a title on a website. |
|
![]() |
<link>
|
To link to an external file, such as a stylesheet. |
|
N/A |
<script>
|
To embed a client-side script. Good at the bottom of the body. |
|
N/A |
<body>
|
To hold the visible parts of the page. |
|
Hello, world! |
<h1>
|
The largest header. |
|
Heading 1 |
<h2>
|
A large header. |
|
Heading 2 |
<h3>
|
A medium header. |
|
Heading 3 |
<img>
|
Used to display images.
Doesn't have a close tag. |
|
![]() |
<a>
|
An anchor tag. Used for hyperlinks. |
|
See the Manta saddle |
<div>
|
A container for elements. Useful for applying styles and scripts to specific parts. |
|
Heading in a divText in a div |
<form>
|
A container for inputs. |
|
|
<input>
|
For input elements, such as text boxes and buttons. |
|
|
<p>
|
To mark a paragraph. |
|
Paragraph text. |
<ol>
|
For an ordered list. It gives numbers. |
|
|
<ul>
|
For an unordered list. It gives bullet points. |
|
|
<li>
|
For each item in your list. |
|
|