All HTML documents contain a skeleton or shell of code that is comprised of all the basics elements that make up the document in order for it function correctly. All HTML files should begin and end with opening and closing HTML tags (explained more in the next section), as well as head, body, and meta tags, as well as all of the content created by the programmer. Internal CSS code or a link to an external document containing CSS code is also stated within the HTML shell.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>title</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
</head>
<body>
</body>
</html>
An HTML element is defined with a start tag, the content, and then the end tag. Each element will always begin with a "start tag" and end with an "end tag". Every end tag will always have a backslash, followed by the tag's name. For example:
Comments can be added into a HTML file in order to provide documentation and explain how the code works. Comments are ignored by browsers, and all comments must begin with "<!--" and end with "-->". Comments can span multiple lines, so long as they begin and end with the correct characters. For example:
<!-- This is a HTML comment -->