1. What is HTML?
It is a markup language, as opposed to a programming language.
2. What is HTML used for?
Through the wrapping of information, it contextualises content, and gives it specific functions and characteristics when displayed on a website.
3. Why are we learning HTML?
So that we can make dynamic and engaging graphical user interfaces for our decentralised applications (dApps), with a variety of interesting content.
4. What is an HTML tag?
HTML tags wrap content, and define how the content will behave and function on the website.
5. What is the structure of an HTML tag?
HTML tags come in opening and closing pairs, which frame the content for which a specific function is to be applied to. The pair of HTML tags in combination with the content between them is called an element.
6. What is an attribute?
An attribute attaches a non-unique identifier to the content, in the form of a name and value, which can be used to target that and similar content on a website with specific but shared style information.
7. What is the anatomy of an HTML document?
DOCTYPE – this applies a set of rules to the content of the page, but over time, the importance of this has diminished in comparison to the early days of HTML.
HTML Element – this wraps everything on the webpage, and is also called the root element.
Head Element – this acts as a container for invisible content, such as SEO information and CSS (Cascading Style Sheets).
Character Set – this is usually set to UTF-8 (Unicode Transformation Format, 8-bit) to accommodate alphabetical and numerical characters from the majority of written languages.
Title Element – as well as labelling the page with a title, it is also the information you want to appear in the browser tab when the page is loaded, and it helps to define the page when bookmarked or favourited.
Body Element – in contrast to the head element, this contains all the content which you intend to be visible to the user of the website when they view it.