WEBDEV - FINALS Flashcards
(131 cards)
triggered when the user clicks an HTML element
onclick
used to embed or reference JavaScript code within an HTML
<script> tag </script>
Each font within a typeface corresponds to a specific combination of these attributes.
Font
hoisted at the top of the scope, meaning they can be called before they are define in the code.
Function Declaration
named container that holds a value. Variables allow you to store and manipulate data throughout your application.
Variables
allows you to select an HTML element based on its unique ID
document.getElementById()
allows you to extract values from objects or arrays easily.
Destructing
used to assign values to variables
Assignment Operators
you can place the
tag either --- or ---- section of your HTML document
<head> and <body> section
</body></head>
used to test the width of the viewport.
Media Feature:width
it focuses on the behavior of the website.
JavaScript
Collection of related fonts
Font-family
Represents an ordered list of values
Array
it returns a reference to the element with the specified ID or null if no matching element exists.
document.getElementById()
allows you to text multiple conditions sequentially and execute the corresponding block of code for the first true condition
if-else if
often used to revert styles after a hover effects
onmouseout
Types of Operators
- Arithmetic Operators
- Assignment Operators
- Comparison Operators
- String Operators
- Logical Operators
- Conditional or Ternary Operators
Hand-lettered look and are thought to convey an elegant feel. Often used for wedding invitations.
Script Typeface
provides an efficient way to handle multiple cases based on the value of an expression
Swith Statement
fired when an HTML element (such as an input field) has been changed
onchange
it takes three operands: a condition, a result for true, and a result for false.
ternary
are actions or occurences that happen in the browser. They can be triggered by various user interactions or by the browser itself.
Events
occurs when an element receives focus
onfocus
triggered when the user moves the mouse away from an HTML element
onmouseout