2 - HTML Basics

HTML Elements and Tags

Each individual markup is referred to as an element and/or a tag
< and > are opening and closing brackets
example - <title>My Web Page</title> Plain text inside tags ('My Web Page' in example above), is *content* stand-alone or self-contained tags


` displays a horizontal line

Web Page document

Every single web page will include these 6 elements:

<!DOCTYPE html>
<html lang='en'>
	<head>
		<title> </title>
		<meta charset="utf-8">
	</head>
	<body>
	</body>
</html>

Document Type Definition (DTD)

Identifies the version of html
First line of a web page document

HTML Element with lang attribute

Identifies the spoken language such as English

HTML Head Section

Identifies the title, character encoding, script and stypes
Includes head, title, and meta elements

HTML Title Element

Configures the text that will appear in the title bar of the browser window

HTML Meta Element

Defines the charset used on the webpage

HTML Body Section

Contains text and elements that display directly on the web page with the browser window