-
HTML (Hyper Text Markup Language) is a markup language that defines the structure of content on your web page. It consists of a series of elements, which you use to enclose, or wrap, different parts of the content to make it appear a certain way, or act a certain way.
-
HTML is used to structure a web page and its content.
-
A good knowledge of HTML makes it easier to develop platform independent apps as well as create custom webpages to better distinguish our efforts.
-
In HTML code tags are code that is used to denote the bounding of an element and any attributes that apply to an element.
-
All HTML tags are encapsulated by two angle brackets < > and come in two types, opening and closing tags.
- Opening tags start with the < bracket, then specify the type of tag followed by any applicable attributes for the tag and the values for those attributes and close the tag with a > bracket.
- Closing tags start with a < bracket followed by a solidus aka forward slash /, then the type of tag is specified and is followed by a > bracket.
-
Attributes are used to alter the behaviour of an element or provide metadata.
-
A HTML document generally consists of a minimum 1 tag and 5 elements.
-
<!DOCTYPE html>
— doctype tag. It is a required preamble. -
<html></html>
— the html root element. -
<head></head>
— the head element. -
<meta charset="utf-8">
— This element sets the character set your document should use, in this case it’s set to UTF-8. -
<title></title>
— the title element. -
<body></body>
— the body element.