{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework4Part1Martin

Homework4Part1Martin - text or...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
<?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> " <!-- Jaime Martin Homework Assignment 4 Exercise 12.7 --> < <html xmlns = "http://www.w3.org/1999/xhtml"> < <head> <title>Exercise 12.7</title> <style type = "text/css"> .option { color: black } .purplebg { background-color: #8A2BE2 } .coralbg { background-color: #FF7F50 } .sans { font-family: sans-serif } .serif { font-family: serif } </style> <script type = "text/javascript"> function bodyClass() { document.body.className = class; } </script> </head> <body> <div id = "main">Click one of the options below to activate changes to the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: text or background<br /><br /> <div>Options: <div onclick = "document.body.className = 'purplebg'" class = "option">Change background to purple.</div> <div onclick = "document.body.className = 'coralbg'" class = "option">Change background to coral.</div> <div onclick = "document.getElementById( 'main' ).className = 'sans'" class = "option">Change text to Sans-serif.</div> <div onclick = "document.getElementById( 'main' ).className = 'serif'" class = "option">Change text to Serif.</div> </div> </div> </body> </html>...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online