(source: https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics)
HTML is not a programming language; it is a markup language that defines the structure of your content. HTML 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. The enclosing tags can make a word or image hyperlink to somewhere else, can italicize words, can make the font bigger or smaller, and so on. For example, take the following line of content:
My cat is very grumpy
If we wanted the line to stand by itself, we could specify that it is a paragraph by enclosing it in paragraph tags:
<p>My cat is very grumpy</p>
Let's explore this paragraph element a bit further.
The main parts of our element are as follows:
Elements can also have attributes that look like the following:
Attributes contain extra information about the element that you don't want to appear in the actual content. Here, class
is the attribute name and editor-note
is the attribute value. The class
attri!bute allows you to give the element an identifier that can be used later to target the element with style information and other things.
An attribute should always have the following: