Question: 1) Write the XHTML code for a short Web page. Include the following along with the usual HTML and BODY tags. You can use whatever

1) Write the XHTML code for a short Web page. Include the following along with the usual HTML and BODY tags. You can use whatever hyperlinks and image URLs you want. (other than distasteful sites, that is!) A title Email link A graphic (gif or jpg) Hyperlink(s) to other sites. Heading A list (can be unnumbered, numbered, etc...)

A background color or a background image.

2) Create a XHTML document containing a form. The title bar should display Voting Form. The form should contain the following: Text boxes to accept the persons name and e-mail address At least five radio buttons the user can use to vote for a candidate for some office. (You make up some names) Text box for write-in alternative Checkboxes with name and value attributes for these options: o This is the first time I have voted online. o I have periodically voted online. o I always vote online. o Online voting is not patriotic Submit Button Reset Button

3) Create an XHTML document containing a table that looks like the following screen capture. Use a text editor such as notepad to write the code. Do NOT use a Web page creation program such as Front Page or Dreamweaver.

4) Use a style sheet to define the following rules and implement the given HTML code. Please put your style information within the same file as the HTML code. Rules Hyperlinks using the nodec class should display no decoration. Hyperlinks should display text in white with a green background color when the mouse pointer is held over the link. (use the hover pseudo-class) Unordered lists not nested within any other lists should be displayed in blue text and should be in bold. Ordered lists that are nested within one Unordered lists should be displayed in red text. Unordered lists that are nested within one Unordered lists should be displayed in green text and should be underlined. Replace insert a web address of your choice with a web address of your choice and replace Put title here with a title that matches the URL. HTML Body Code

Put title here

  • Macintosh OS
  • Microsoft
    1. Windows 98
    2. Windows 2000
  • Linux
    • Redhat
    • Slackware
  • OS/2

Part III: JavaScript. Answer all of the following JavaScript Questions 5) Write a JavaScript script that will ask the user to enter in the length of the side of a cube. (all the sides of a cube are equal) Based on the value that is entered by the user from the keyboard, calculate each of the following and assign your results to variables. 1. volume of the cube 2. surface area of the cube 3. volume of the largest sphere that could fit in the box. 4. surface area of the largest sphere that could fit in the box. 5. volume of the space in between the cube and the sphere. HINT: the largest sphere that could fit in the box will have a diameter equal to the side of the cube. ANOTHER HINT: to find the volume in between the cube and sphere you should subtract volumes. in case you forgot the sphere formulas, they are: volume of sphere = 4/3 Pi r3 surface area of sphere = 4 Pi r2 Your script should output HTML text that displays the results of your calculations.

6) Write a script that will pick a random restaurant to eat at in Commerce. The choices are listed below. You can add more if you want. Your page should have an html form with a simple one-line text box that should display the name of the restaurant. You should have a button that when pushed will invoke a JavaScript function that randomly chooses and displays the restaurant into the text box. Molinas Sonic Subway McDonalds Taco Bell Pasanos Lone Star Eatery Chicken Express

7) Write a script that will calculate a persons weight on each planet of the solar system, the sun, and the moon. You should create an html form with text boxes for each planet (also the sun and moon). You should also have a text box for a person to enter their weight on Earth. When the user clicks on a button, a javascript function should be called that calculates each weight and puts the results in the corresponding text boxes in the form. Use the Math.round method to round the numbers to the nearest whole number. Here are some formulas for the conversions. Mercury= weight * .378 Venus = weight * .907 Mars = weight * .377 Jupiter = weight * 2.364 Saturn = weight * .916 Uranus = weight * .889 Neptune = weight * 1.125 Pluto = weight * .067 Sun = weight * 27.072 Moon = weight * .166

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!