One of the most inmportant jobs for html is to give text structure so that a browser can display an html document the way its developer intends.
Html can be used for structuring a page of text by adding different headings and paragraphs, emphaszing words, creating lists, and etc.
You can apply CSS to a document using 3 methods.(3 methods: External stylesheet, with an internal stylesheet, and with inline styles)
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.
Internal stylesheet resides witin an HTML document. If you want to create a internal stylesheet, you place CSS inside a style element contained inside the html head. EX.(
p {
color: red;
}
</style>)
Inline styles are CSS declarations that affect a single html element, contained within a style attribute. Ex.(<p> style=”color:red;”>This is my first CSS example</p>)
Comments are snippets of text that can be added along with code. Browsers ignores text marked as comments. If your comment contains no line breaks, its an option to put it slashes like this: // this is a comment
An operator is a math symbol that produces a result based on 2 values and or variables. (Add, subtract, multipliy, divide, assignment, strict equally,and Does-not-equal)
HTML Questions
1) Why is it important to use semantic elements in our HTML? It helps screen readers, search engines, and other user devices decide the context and significance of web content.
2) How many levels of headings are there in HTML? There are 6 different headings in HTML
3) What are some uses for the sup and sub elements? The sup element defines superscript text and the sub element defines the subscript text
4) When using the abbr element, what attribute must be added to provide the full expansion of the term? The title must be a full expansion of the abbreviation or acronym.
CSS Questions
1) What are ways we can apply CSS to our HTML? Inline stylesheet, External stylesheet, and internal stylesheet
2) Why should we avoid using inline styles? one of the main reasons that inline styling is not a good choice for your application is because it does not support (or it has really poor support) for CSS features.
3) Review the block of code below and answer the following questions: 1)H2 is the selector 2)Color and Padding are css declarations. 3)Black and 5px are properties
JavaScript Questions
1) What data type is a sequence of text enclosed in single quote marks? String
2) List 4 types of JavaScript operators *Arithmetic Operators, Comparison, Bitwise, and Assignment
3) Describe a real world Problem you could solve with a Function. Automating repetitive tasks
Conditionals Questions 1)An else if statement checks a return to se if its true or not 2)These are called conditionals and their purpose is to see if a return is true or not 3) <(less than), >(greater than),<=(less than or equal) are all comparison operators.