-
What is HTML? HTML is website code. It is used to build the website itself with its content.** **HTML is an acronym for Hypertext Markup Language. A markup language is not the same as code for content as its use is governs the way the website elements act and the content appears when the user engages with the website.
-
What is HTML used for? Building the website itself.
-
Why are we learning HTML? Communications on the internet become possible by using HTML. It is foundational; it is the means by which content is expressed and allows for text to be large, small, italicized, spaced. Links are created and referenced; colors, placement are established. HTML is used to surround content with code that dictates the structure and look of the website and its content.
-
What is an HTML tag? It is the beginning or end point of an element which is named for its purpose. There is the opening tag and the closing tag.
-
What is the structure of an HTML tag? The opening tag is comprised of the less than sign: < ,name of element (an abbreviation), greater than sign: >. Importantly the closing tag of the element contains a forward slash: / before the element name.
-
What is an attribute? The attribute is extra information about an element that is not part of the content. It explains particulars about the element. It has the category of the attribute followed by the value of that particular attribute. Multiple attributes may be added to an element. This marking of the element allows for it to be targeted later with code in order to effect the way they appear or act. It is a way of referencing elements of a particular focus so you may manipulate all elements with that attribute as you continue to code.
The attribute is within the opening tag: one space after the element name, equals sign with no space followed by value within quotes.
I saw a note indicating attribute values can be unquoted, which, I assume, means no spaces where the quotes would be, is that the case?
So, I found out ****** :
Unquoted attribute values in HTML
Most people are used to quoting all attribute values in the HTML they write. For example:
<a href="foo" class="bar">baz</a>
Single quotes can be used too:
<a href='foo' class='bar'>baz</a>
However, the following is valid HTML as well:
<a href=foo class=bar>baz</a>
Also I found out: What is ASCII whitespace ******* ?
In HTML
"HTML Living Standard specifies 5 characters as the ASCII whitespace: U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, and U+0020 SPACE. In the form of text, they are treated as normal space characters and sequential whitespaces are collapsed as a single space in many cases (this behavior can be changed by the white-space
CSS property). They are also used as a separator of an element name and its parameters, class names, and so on.ā
In JavaScript
"ECMAScriptĀ® 2015 Language Specification specifies several Unicode codepoints as white space: U+0009 CHARACTER TABULATION , U+000B LINE TABULATION , U+000C FORM FEED , U+0020 SPACE , U+00A0 NO-BREAK SPACE , U+FEFF ZERO WIDTH NO-BREAK SPACE and Other category āZsā Any other Unicode āSeparator, spaceā code point . These characters are usually unnecessary for the functionality of the code.ā
-
What is the anatomy of an HTML document? The anatomy of an HTML document is comprised of all the elements that make for an HTML page. They are:doctype ā This ensures the page acts as it should and was originally a link to a set of rules required in the early days. It looks like this**:The root element is the HTML element which encompasses the HTML pad in its entirety:The head element wraps around everything that is not the actual content for readers,that includes SEO keywords, style, etc.:Next element is to ensure most all characters from different languages may be used within the code. Setting UTF-8 should not be omitted as it saves trouble in the long run:Title of the page element appears on browser tab and when bookmarked:
Last is the body element which is the body of the text people read and any and all images, videos, etc. for readerās perusal:
References:
7.https://www.w3schools.com/html/html_classes.asp
8.*https://mathiasbynens.be/notes/unquoted-attribute-values
9.**https://developer.mozilla.org/en-US/docs/Glossary/whitespace