it’s vital to understand how HTML, CSS, and JS interact and with eachother and what can each individually do.
Links to tutorials and challenges.
Headings and paragraphs exist in most pieces of writing and exist to give readable content structure and be able to easily discern different sections of what is being read.
Paragraphs are wrapped in <p> elements.
Headings stand out by being wrapped in <h#> elements. Replacing the number sign (#) with the corresponding number (1-6).
Having a structured site allows the user to easily scan the page for relevant content. Also, useful for search indexes to be able to pull content and categorize important keywords. Increasingly helpful for screen readers and accessibility software. Useful when utilizing CSS/JS to target specific elements.
Semantics are key to have, as their inclusion allows a developer to know what an element is expected to do/output. Easier on the developer as well as it saves keystrokes for not having to style individual/generic elements (<span> or <div>) to match desired styling/format.
Blockquotes are specified by using the <blockquote> element and citing the source with the cite attribute.
Inline quotes are done very similar, they however use the <q> element within the parent element, whereas the <blockquote> element is the parent element. Also citing as an attribute in the opening tag.
<abbr> is used to represent abbreviations or acronyms.
To represent contact information, the <address> element is used to wrap content.
Superscript and subscript is represented by <sup> and <sub> respectively.
Time and date is specified with the <time> element.
Various elements can be used to represent computer code, such as:
<code> - for generic snippets.<pre> - retains text format as seen in text editor, keeps indents, line breaks, and other whitespace.<var> - used for variable names.<kbd> - for input entered into PC.<samp> - for the output of a computer program.<sup> and <sub> elements?
<abbr> element, what attribute must be added to provide the full expansion of the term?
title.CSS can be used one of three ways.
Best practice is to link an external .css file within <head> element using th <link> element, but you may also choose to write out all the rules used on that one page in the <head> element with the <style> element. Last choice is if you want to style just one, single element, you may choose to style it by using the <style> attribute in the opening tag. A benefit of linking an external style sheet is that one sheet can be used for multiple pages, if need be.
Various selectors exist that dictate which HTML element will be style, such as:
* - Universal, everything on the HTML file will be styled with the following rule.(specific element) - style all elements of the same type (paragraphs, headings, etc.)..class_name - elements with specific <class> attribute will be style appropriately, adding unique name after period.Functions can also be used in CSS rules to further add and modify the styling of an element/selector.
Shorthand properties save keystrokes as they allow to set various values within one line.
<h2>{}, color: black; is one declaration and padding: 5px; is the second declaration.color or padding.Through the use of APIs, we as developers are able to further add functionality to a website and as users, are allowed to interact and manipulate various parts of the site, browser, and programming environment. APIs are built on top of the existing JS language. Usually coupled with Events, which are just that, things that happen within the browser. An event is an indicator for something to start running or happen.
if statement checks a condition and if it evaluates to true, then the code block will execute.else if?
> <=== !==<= >=.&& and ||?
&& AND, combines expressions and both must be true for entire expression to be true.|| OR, combines expressions and at least one must be true.Keep messages short and sweet; the more straight to the point, the better while still including relevant info.
A clean log is a better log to review.
Might be a good idea to have a format / style as to how to write commit messages and what to include in them.
<abbr>.Different ways to markup code snippets.
Play with functions within CSS.
DOM and expanding on js function/content manipulation.