Last Revised: May 30, 2025, 11:00 pm
<html> <head> <meta> <title> <style> <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-collapse margin padding
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 "" "0" "0.0" falseConstants equal to true when compared with ==:
1 1.0 "1" "1.0" true
concat pop push shift slice splice toString unshift
charAt concat indexOf lastIndexOf repeat split startsWith substr substring toLowerCase toUpperCase trim valueOf
abs ceil floor 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 DOMContentLoaded focus load mousedown mouseenter mouseleave mousemove mouseup Event Object (e)
Examples: htmlElement.addEventListener("click", f); htmlElement.onclick = f;
GET HEAD POST PUT DELETE