<head>
element should include:
<title>
element with the title
"Project No. 5"
<meta>
element that references
the "UTF-8" character set
<link>
element that links to
a stylesheet that incorporates both formatting and layout
as per your own specifications
<body>
element contains header
, section
,
aside
and footer
blocks all of your
own design (except as noted just below)
header
block within the the <body>
element includes an image map with "hot spot"
links to the four web documents in the application; either save and
use the "banner" image at the top of this document or create your own
image file (there is no nav
block in this project since the
"navigation menu" is located in this header
block)
section
block within the the <body>
element includes either the project instructions on the
"Home Page" or the JavaScript code for each page depending
upon which document it is (see below)
footer
block within the the <body>
element includes an <address>
block which
contains a script that writes to the document window a
date
object instantiated to the current system
date formatted to the toString
representationsection
block within the the <body>
element of the "Home Page" includes (see below):<p>
(paragraph) that is a general description
of the overall project
head
> element script, write one function
:function letterTree()
that:for
loop that iterates
through the lowercase letters 'a' through 'z' (Unicode
97 through 122)
String.fromCharCode()
method to assign letters from the Unicode table to a variable;
for example the statement:var letter = String.fromCharCode(97);
for
loop that prints lines
of output to the document window; one (1) character 'a' on the first
line to 26 letters 'z' on the last linesection
block of the <body
>
element write a script that:function letterTree()
that "writes"
the "Alphabet Tree" to the document windowhead
> element script, write two function
s:function isPalindrome()
with a return
type of
boolean
that:string
parameter
function reverse()
(see next
function
below) and passes to it the
string
parameter from step (a)
return
value from
function
reverse()
to another string
variable
string
parameter of this
function
isPalindrome()
is equal to the return
value from function reverse()
, the input text
is a "palindrome" and the return
value of this
function
is true
; otherwise the
return
value is false
string
and the
"reverse" string
should be case insensitive, so
consider using the string.toLowerCase()
method for both string
values)function reverse()
with a return
type of
string
that:string
parameter
while
or a for
loop to reverse the order of the string
parameter
which is the return
value of this function
section
block of the <body
>
element, write a script that:string
function isPalindrome()
(see above in
the <head
> script) and passes to it the
user input string
as a parameter
return
value from the call to
function isPalindrome()
is true
, writes to the document window
the value of the user input string
concatenated to the message "is a palindrome"
(as per the first example in the image below)
return
value from the call to
function isPalindrome()
is false
, writes to the document window
the value of the user input string
concatenated to the message "is not
a palindrome" (the word "not" should be formatted
with bold and italic
font styles (as per the second example in the
image below)function
s:function sortList()
that:arguments
object
and assigns the list to an array
string.sort()
method
(since the sort()
method sorts arrays
as string
s, it only works for
numbers that contain the same number of digits)
return
value of the
function
is the sorted listfunction printIt()
that:head
> element of the HTML document,
add a <script
> block that links to the
"part3.js" JavaScript filesection
block of the <body
>
element of the HTML document, write a script that:string
s and numbers to
the function sortList()
in the "part3.js"
JavaScript file
return
values from step (1) above to the
function printIt()
in the "part3.js"
JavaScript file for displaying to the document
window