HTML crash course
Hyper-Text Markup Language (HTML) is the language that shapes the content of web pages. Web browsers understand HTML code and represent it in the format we are used to seeing: web pages. Here is a little very basic HTML example:
<!DOCTYPE html>
<html>
<head>
<title>Tab in the browser</title>
</head>
<body>
<p>Hello web!</p>
</body>
</html>
This is what this basic web page looks like:
Figure 9.1: Basic website
HTML code consists of elements. These elements contain a tag and attributes. We will explain these fundamental concepts in the coming sections.
HTML elements
As you can see, HTML consists of words between <angle brackets>
, or elements. Any element that gets opened needs to be closed. We open with <elementname>
and we close with </elementname>
.
Everything in between that is part of the element. There are a few exceptions with...