What is HTML?
HTML stands for Hyper Text Markup Language. It isn’t a programming language, but rather, it tells how to display information. For example, it can display text with a specific font, size, etc.
What is HTML used for?
It is used to display information in a specific way on a webpage.
Why are we learning HTML?
HTML can be linked to the blockchain, and through HTML we can display the results of what we did on the blockchain.
What is an HTML tag?
An HTML tag gives instructions on how the content should be displayed.
What is the structure of an HTML tag?
There is an opening tag and a closing tag. The tags wrap the content. The closing tag has a / to indicate it is closing. The tags are enclosed with <> brackets.
What is an attribute?
Attributes contain extra information about the element that will not appear in the actual content. An attribute consists of attribute name and an attribute value . The name is followed by an equal sign. The value is wrapped by opening and closing quotation marks.
An example is
My cat is very grumpy
Class is the attribute name and editor-note is the value .
What is the anatomy of an HTML document?
The anatomy is what makes up the HTML. Below are some examples of it.
Doctype – Not very relevant these days, but needed.
HTML – Wraps up the entire page, known as the root element.
Head – Not included in the page itself. But will be in the window bar for example. Also has meta data, charset, description, etc.
Title – Title goes into the head portion
Body – Everything in the body defines the content and structure of the page.