Why is it important to use semantic elements in our HTML? One of HTML’s main jobs is to give text meaning (also known as semantics), so that the browser knows how to display it correctly. This article looks at how to use HTML to break up a block of text into a structure of headings and paragraphs, add emphasis/importance to words, create lists, and more.
How many levels of headings are there in HTML? HTML headings are defined with the h1 to h6 tags. h1 defines the most important heading. h6 defines the least important heading.
**What are some uses for the and elements?** The sup HTML element specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text.
**When using the element, what attribute must be added to provide the full expansion of the term?** The HTML element represents an abbreviation or acronym.
How CSS Is Structured
What are ways we can apply CSS to our HTML? An external stylesheet contains CSS in a separate file with a .css extension. This is the most common and useful method of bringing CSS to a document. You can link a single CSS file to multiple web pages, styling all of them with the same CSS stylesheet.
Why should we avoid using inline styles? An internal stylesheet resides within an HTML document. To create an internal stylesheet, you place CSS inside a style element contained inside the HTML head
Review the block of code below and answer the following questions:
What is representing the selector? h2 Which components are the CSS declarations? Between {} Which components are considered properties? Color and Font-size
Java Script
What data type is a sequence of text enclosed in single quote marks? String
List 4 types of JavaScript operators.
Arithmetic Operators Assignment Operators Comparison Operators Logical Operators Conditional Operators Type Operators Describe a real world Problem you could solve with a Function.
Functions
Reading Source Links:
[Intro to HTML] https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML
[Text fundamentals] https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/HTML_text_fundamentals
[Advanced Text Formatting] https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Advanced_text_formatting