Web Programming Exam Cheat Sheet
|
<!DOCTYPE>
|
<code>
|
|
<html>
|
<cite>
|
|
<head>
|
<sub>
|
|
<body>
|
<sup>
|
|
<!-- -->
|
<bdo>
|
|
<param />
|
<form>
|
|
<base />
|
<fieldset>
|
|
<meta />
|
<legend>
|
|
<title>
|
<label>
|
|
<link />
|
<input />
|
|
<style>
|
<select>
|
|
<script>
|
<option>
|
|
<h[1-6]>
|
<textarea>
|
|
<div>
|
<button>
|
|
<span>
|
<object>
|
|
<p>
|
<param />
|
|
<br />
|
<area />
|
|
<hr />
|
<base />
|
|
<a href="">
|
<br />
|
|
<a href="mailto:">
|
<col />
|
|
<a name="name">
|
<hr />
|
|
<a href="#name">
|
Core Attributes:-
|
|
<ol>
|
class
|
|
<ul>
|
id
|
|
<li>
|
style
|
|
<dl>
|
title
|
|
<dt>
|
Events:-
|
|
<dd>
|
onLoad
|
|
<table>
|
onUnload
|
|
<caption>
|
onBlur
|
|
<thead>
|
onChange
|
|
<tbody>
|
onFocus
|
|
<tfoot>
|
onReset
|
|
<colgroup>
|
onSelect
|
|
<col />
|
onSubmit
|
|
<tr>
|
onKeydown
|
|
<th>
|
onKeypress
|
|
<td>
|
onKeyup
|
|
<img />
|
onClick
|
|
<strong>
|
onDblclick
|
|
<abbr>
|
onMousedown
|
|
<acronym>
|
onMousemove
|
|
<address>
|
onMouseout
|
|
<pre>
|
onMouseover
|
|
onMouseup
|
|
<!DOCTYPE....>
|
|
<!ELEMENT....>
|
|
<!ATTLIST.......>
|
|
<!ENTITY........>
|
|
<![CDATA[..]]>
|
|
<....xmlns:....>
|
|
--Selectors--
|
--Color/Background--
|
|
*
|
color +
|
|
div
|
background x
|
|
div *
|
background-color
|
|
div span
|
background-attachment
|
|
div, span
|
background-repeat
|
|
div > span
|
background-image
|
|
div + span
|
background-position
|
|
.class
|
--Text---
|
|
div.class
|
Text-indent +
|
|
#itemid
|
text-align +
|
|
div#itemid
|
text-decoration
|
|
a[attr]
|
text-shadow
|
|
a[attr='x']
|
letter-spacing +
|
|
a[class~='x']
|
word-spacing +
|
|
a[lang|='en']
|
text-transform +
|
|
--Pseudo Selectors,-Classes--
|
white-space +
|
|
:first-child
|
line-height +
|
|
:first-line
|
--Boxes--
|
|
:first-letter
|
margin x
|
|
:hover
|
margin-top
|
|
:active
|
margin-right
|
|
:focus
|
margin-bottom
|
|
:link
|
margin-left
|
|
:visited
|
padding x
|
|
:lang(var)
|
padding-top
|
|
:before
|
padding-right
|
|
:after
|
padding-bottom
|
|
--Fonts---
|
padding-left
|
|
font + x
|
border x
|
|
font-family +
|
border-top x
|
|
font-style +
|
border-bottom x
|
|
font-variant +
|
border-right x
|
|
font-weight +
|
border-left x
|
|
font-stretch +
|
border-color x
|
|
font-size +
|
border-top-color
|
|
font-size-adjust +
|
border-right-color
|
|
--Tables--
|
border-bottom-color
|
|
caption-side +
|
border-left-color
|
|
table-layout
|
border-style x
|
|
border-collapse +
|
border-top-style
|
|
border-spacing +
|
border-right-style
|
|
empty-cells +
|
border-bottom-style
|
|
border-left-style
|
|
|
border-width x
|
|
|
display
|
border-top-width
|
|
position
|
border-right-width
|
|
top
|
border-bottom-width
|
|
right
|
border-left-width
|
|
bottom
|
|
|
left
|
|
|
float
|
|
|
clear
|
|
|
z-index
|
|
|
direction +
|
|
|
unicode-bidi
|
|
|
overflow
|
|
|
clip
|
|
|
visibility
|
|
|
Functions-window
|
---Events---
|
|
alert
|
onAbort
|
|
blur
|
onBlur
|
|
clearTimeout
|
onChange
|
|
close
|
onClick
|
|
focus
|
onDblClick
|
|
open
|
onDragDrop
|
|
print
|
onError
|
|
setTimeout
|
onFocus
|
|
onKeyDown
|
|
|
--Built In functions--
|
onKeyPress
|
|
eval
|
onKeyUp
|
|
parseInt
|
onLoad
|
|
parseFloat
|
onMouseDown
|
|
isNaN
|
onMouseMove
|
|
isFinite
|
onMouseOut
|
|
decodeURI
|
onMouseOver
|
|
decodeURIComponent
|
onMouseUp
|
|
encodeURI
|
onMove
|
|
encodeURIComponent
|
onReset
|
|
escape
|
onResize
|
|
unescape
|
onSelect
|
|
onSubmit
|
|
|
onUnload
|
|
|
---Array--
|
--String--
|
|
concat
|
charAt
|
|
join
|
charCodeAt
|
|
push
|
fromCharCode
|
|
pop
|
concat
|
|
reverse
|
indexOf
|
|
shift
|
lastIndexOf
|
|
slice
|
localeCompare
|
|
sort
|
match
|
|
splice
|
replace
|
|
unshift
|
search
|
|
--Date--
|
slice
|
|
getDate
|
split
|
|
getDay
|
substring
|
|
getFullYear
|
substr
|
|
getHours
|
toLowerCase
|
|
getMinutes
|
toUpperCase
|
|
getMonth
|
toLocaleLowerCase
|
|
getSeconds
|
toLocaleUpperCase
|
|
getTime
|
|
|
getYear
|
--Basics--
|
|
setDate
|
Function
|
|
setHours
|
If...Else
|
|
setMinutes
|
Switch
|
|
setMonth
|
For Loop
|
|
setSeconds
|
While Loop
|
|
setYear
|
Do...While Loop
|
|
Break ,Continue
|
|
|
For...In
|
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.