HTML5 Input Types
HTML5 Input Types
color
date
datetime-local
email
month
number
range
search
tel
time
url
week
New input types that are not supported by older web browsers, will behave as <input
type="text">.
Readonly
Disabled
Size
Maxlength.
HTML5 Attributes
HTML5 added the following attributes for <input>:
autocomplete
autofocus
form
formaction
formenctype
formmethod
formnovalidate
formtarget
height and width
list
min and max
multiple
pattern (regexp)
placeholder
required
step
autocomplete
novalidate
HTML Geolocation
HTML Drag and Drop
HTML Local Storage
HTML Application Cache
HTML Web Workers
HTML SSE
<acronym> <abbr>
<applet> <object>
<basefont> CSS
<big> CSS
<center> CSS
<dir> <ul>
<font> CSS
<frame>
<frameset>
<noframes>
<tt> CSS
HTML History
Since the early days of the World Wide Web, there have been many versions of HTML:
Year Version
This example adds a new element called <myHero> to an HTML page, and defines a style for
it:
Event Description
onmouseout The user moves the mouse away from an HTML element
Array methods
Converting Arrays to Strings. The JavaScript method toString() converts an array to a string of
(comma separated) array values. ...
Popping. The pop() method removes the last element from an array: ...
Pushing. ...
Shifting unshift Elements. ...
Changing Elements. ...
Splicing an Array. ...
Merging (Concatenating) Arrays. ...
Slicing an Array.
Number methods:
Method Description
Method Description
constructor() Returns the function that created this object's instance. By default this is the
Number object.
toFixed() Formats a number with a specific number of digits to the right of the
decimal.
toLocaleString() Returns a string value version of the current number in a format that may
vary according to a browser's locale settings.
toPrecision() Defines how many total digits (including digits to the left and right of the
decimal) to display of a number.
ARRAY SORT/REVERSE
Numeric Sort
var points = [40, 100, 1, 5, 25, 10];
points.sort(function(a, b){return a - b});