HTML and CSS Reference
In-Depth Information
Code
Explanation
form {
Style specified for all form elements. There is
just one in this document.
color: blue;
Color of text set to blue, one of the 16 colors
known by name
font-family: Georgia, "Times New
Roman", Times, serif;
Set up the fonts to try to use
font-size:16px;
Set size of characters
}
Close style
input {
Style specified for all input elements. There is
just one.
text-align:right;
Make the text align to the right, appropriate
for numbers
font:inherit;
Inherit any font information from parent,
namely form
color:inherit;
Inherit color of text from parent, namely form
}
Close style
</style>
Close style element
<script >
Start script element
var cwidth = 600;
Canvas width, used for clearing
var cheight = 400;
Canvas height, used for clearing
var ctx;
Canvas ctx, used for all drawing
var everything = [];
Holds the 3 graphics
var rockbx = 50;
Horizontal position of rock symbol
var rockby = 300;
Vertical position of rock symbol
var paperbx = 150;
Horizontal position of paper symbol
Search WWH ::




Custom Search