- Standard markup language for Web pages.
- Markup is built using tags.
- The
<!DOCTYPE>
declaration must be the first, before the<html>
tag. - The
<!DOCTYPE>
declaration is not an HTML tag; it instructs the browser the version of HTML.
https://www.w3schools.com/tags/tag_doctype.asp
- The
<html>
tag tells the browser that this is an HTML document. - The
<html>
tag represents the root of an HTML document. - The
<html>
tag is the container for all other HTML elements (except for the<!DOCTYPE>
tag).
https://www.w3schools.com/tags/tag_html.asp
- The
<head>
element is a container for metadata (data about data) and is placed between the<html>
tag and the<body>
tag. - HTML metadata is data about the HTML document. Metadata is not displayed.
- Metadata typically define the document title, character set, styles, scripts, and other meta information.
https://www.w3schools.com/html/html_head.asp
- The
<body>
tag defines the document's body. - The
<body>
element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.
https://www.w3schools.com/tags/tag_body.asp
- All HTML elements can have attributes
- Attributes provide additional information about an element
- Attributes are always specified in the start tag
- Attributes usually come in name/value pairs like:
name="value"
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document...
</body>
</html>
https://next.plnkr.co/edit/NYJ4GnRGV5zcq86e?preview
https://www.w3schools.com/html/