HTML Reviewer
HTML Reviewer
Provide contextual feedback messages for typical user actions with the handful of available and flexible
alert messages.
Bootstrap 5 Jumbotron
a big padded box for calling extra attention to some special content or information.
The ".container-fluid" class provides a full width container, spanning the entire width of the viewport
Bootstrap is a free front-end framework for faster and easier web development
Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables,
navigation, modals, image carousels and many other, as well as optional JavaScript plugins
Bootstrap also gives you the ability to easily create responsive designs
Responsive web design is about creating web sites which automatically adjust themselves to look good
on all devices, from small phones to large desktops.
Bootstrap's grid system is built with flexbox and allows up to 12 columns across the page.
Navbar
Alerts
Info! This alert box could indicate a neutral informative change or action.
Warning! This alert box could indicate a warning that might need attention.
Danger! This alert box could indicate a dangerous or potentially negative action.
Primary! Indicates an important action.
Bootstrap's grid system is built with flexbox and allows up to 12 columns across the page.
Bootstrap 5 Images
.btn class is intended to be used in conjunction with our button variants, or to serve as a basis for your
own custom styles.
.btn-outline Move the mouse over them to see an additional "hover" effect
.d-grid create a block level button that spans the entire width of the parent element
If you have many block-level buttons, you can control the space between them with the .gap-3 class
Bootstrap 5 uses a default font-size of 1rem (16px by default), and its line-height is 1.5.
In addition, all <p> elements have margin-top: 0 and margin-bottom: 1rem (16px by default).
<h1> - <h6>
Bootstrap 5 styles HTML headings (<h1> to <h6>) with a bolder font-weight and a responsive font-size.
Display Headings
Display headings are used to stand out more than normal headings (larger font-size and lighter font-
weight), and there are six classes to choose from: .display-1 to .display-6
Bootstrap 5 will style <mark> and .mark with a yellow background color and some padding
Text Colors
Bootstrap 5 has some contextual classes that can be used to provide "meaning through colors".
The classes for text colors are: .text-muted, .text-primary, .text-success, .text-info, .text-warning, .text-
danger, .text-secondary, .text-white, .text-dark, .text-body (default body color/often black) and .text-light:
Background Colors
The classes for background colors are: .bg-primary, .bg-success, .bg-info, .bg-warning, .bg-danger, .bg-
secondary, .bg-dark and .bg-light.
.text-color class to get the right text color for each background
.text-bg-color classes and Bootstrap will automatically handle the appropriate text color for each
background color
getElementById() - "finds" an HTML element (with id="demo"), and changes the element content
(innerHTML) to "Hello JavaScript"
JavaScript was invented by Brendan Eich in 1995, and became an ECMA standard in 1997.
ECMA-262 is the official name of the standard. ECMAScript is the official name of the language.
function is a block of JavaScript code, that can be executed when "called" for.
a function can be called when an event occurs, like when the user clicks a button.
Placing scripts at the bottom of the <body> element improves the display speed, because script
interpretation slows down the display.
Using document.write() after an HTML document is loaded, will delete all existing HTML
JavaScript programs (and JavaScript statements) are often called JavaScript code.
JavaScript statements can be grouped together in code blocks, inside curly brackets {...}.
JavaScript statements often start with a keyword to identify the JavaScript action to be performed.
The two most important syntax rules for fixed values are:
x * 10
Or an underscore (_)
Hyphens are not allowed in JavaScript. They are reserved for subtractions.
Automatically
Using var
Using let
Using const
3. Always use const if the type should not be changed (Arrays and Objects)
If you put a number in quotes, the rest of the numbers will be treated as strings, and concatenated.
The operation (to be performed between the two operands) is defined by an operator.
The exponentiation operator (**) raises the first operand to the power of the second operand.
1. String
2. Number
3. Bigint
4. Boolean
5. Undefined
6. Null
7. Symbol
8. Object
1. An object
2. An array
3. A date
When adding a number and a string, JavaScript will treat the number as a string.
JavaScript has dynamic types. This means that the same variable can be used to hold different data types
JavaScript BigInt is a new datatype (ES2020) that can be used to store integer values that are too big to
be represented by a normal JavaScript Number.
JavaScript Arrays
JavaScript arrays are written with square brackets.
const cars = ["Saab", "Volvo", "BMW"];
a variable without a value, has the value undefined. The type will also be undefined.
Objects are variables too. But objects can contain many values.
onmouseout The user moves the mouse away from an HTML element