DELAWARE'S · MIDDLETOWN · ODESSA · TOWNSEND AREA
This page is for some basic HTML with some Javescript thrown in.
The Javascript is exposed between the script tags primarily for familiarization purposes.
Area = Length x Width
for a rectangle
Area
Note: in this example the variables are Length and Width which also serve as literals.
- Literals are word for word expressions that can be a letter, phrases, other words
and even nonsensical expressions. - Literals are enclosed by quotation marks while variables are not enclosed.
- Enclosing a variable name with quotation marks just leaves you with the variable name
- not its value. - An entity reference is shown as · which represents the mid dot.
- Such references also provide symbols that are not readily available on the keyboard.
- Also, the entity reference can tell HTML to treat the code as a symbol for display purposes only.
In others words, the browser is instructed not to execute the code as a HTML element.
<SCRIPT type="text/javascript">
var Length = 50;
var Width = 100;
var Area= Length*Width;
document.write("Length"+" ·" +Length +" " + "X"+
" ·" + "Width" +" ·" + Width);
document.write("<br /><br />" + "=" +"<br /><br />");
document.write(Area);
</SCRIPT>
Result- Code interpreted and executed:
DELAWARE'S MIDDLETOWN ODESSA AND TOWNSEND AREA