Last Revised: Mar 4, 2025, 5:00 pm
<html> <head> <meta> <title> <link> <script> <body> <span> <br> <p> <h1> <h2> <h3> <img> <a> <ul> <ol> <li> <table> <tr> <th> <td> <button> <input> <label> <textarea> <select> <option> <form>
color background-color font-family font-size font-weight font-style width height display visibility
border font margin padding
red lime blue yellow aqua magenta maroon green navy olive teal purple black white gray silver
text (default) button color date file hidden number checkbox password radio range submit
class else false for function if let new null return this true typeof var while
boolean number object string undefined Special number values: Infinity NaN
Arithmetic: + - * / % Comparison: == === < <= > >= != !== Logical: && || ! Assignment: = += -= *= /= %= Elvis: ? : Miscellaneous: . [ ] ( ) typeof new
0 0.0 "" false NaN undefinedObtain truthiness value with Boolean function.
concat pop push shift slice splice toString unshift
charAt concat indexOf lastIndexOf repeat split startsWith substr substring toLowerCase toUpperCase trim valueOf
abs ceil floor max min random round
Constructor calls: var d = new Date( ); var d = new Date(2021, 3, 2); var d = new Date(2021, 3, 2, 20, 43, 51); Getter methods: getYear getMonth getDate getHours getMinutes getSeconds getTime
JSON.stringify JSON.parse
getElementById getElementsByClass getElementsByName getElementsByTagName querySelector querySelectorAll createElement appendChild removeChild
id innerHTML name nodeName style src value
blur change click dblclick focus load mousedown mouseenter mouseleave mousemove mouseup Event Object
Examples: htmlElement.addEventListener("click", f); htmlElement.onclick = f;
GET HEAD POST PUT DELETE TRACE OPTIONS CONNECT