-
What is HTML?
–> " HTML is a markup language that defines the structure of your content. HTML consists of a series of elements " -
What is HTML used for?
–> “, which you use to enclose, or wrap, different parts of the content to make it appear a certain way, or act a certain way.” -
Why are we learning HTML?
–> To learn how to structure text or other static data on a web site. -
What is an HTML tag?
–> " This consists of the name of a element, wrapped in opening and closing angle brackets . This states where the element begins/ends or starts to take effect." -
What is the structure of an HTML tag?
–> An opening tag and a closing tag, like so:<element>content</element>
-
What is an attribute?
–>“Attributes contain extra information about the element that you don’t want to appear in the actual content.” -
What is the anatomy of an HTML document?
–> *<!DOCTYPE html>
— doctype. It is a required preamble. In the mists of time, when HTML was young (around 1991/92), doctypes were meant to act as links to a set of rules that the HTML page had to follow to be considered good HTML, which could mean automatic error checking and other useful things. However these days, they don’t do much and are basically just needed to make sure your document behaves correctly. That’s all you need to know for now.
-
<html></html>
— the<html>
element. This element wraps all the content on the entire page and is sometimes known as the root element. -
<head></head>
— the<head>
element. This element acts as a container for all the stuff you want to include on the HTML page that isn’t the content you are showing to your page’s viewers. This includes things like keywords and a page description that you want to appear in search results, CSS to style our content, character set declarations, and more. -
<meta charset="utf-8">
— This element sets the character set your document should use to UTF-8 which includes most characters from the vast majority of written languages. Essentially, it can now handle any textual content you might put on it. There is no reason not to set this and it can help avoid some problems later on. -
<title></title>
— the<title>
element. This sets the title of your page, which is the title that appears in the browser tab the page is loaded in. It is also used to describe the page when you bookmark/favorite it. -
<body></body>
— the<body>
element. This contains all the content that you want to show to web users when they visit your page, whether that’s text, images, videos, games, playable audio tracks, or whatever else.