Question: Create a webpage in which the user is allowed to select the page's background and color whether the page uses serif or sans serif fonts.

Create a webpage in which the user is allowed to select the page's background and color whether the page uses serif or sans serif fonts. The change the body element's style attribute accordingly.

If the user onclicks any of the options, the webpage will turn into that format. For example, if the user clicks "Gray background", the background color of the webpage will be Gray. If the user clicks Serif-text, the text in the web page will be in Serif text.

CODE SO FAR:

Week 4 Page 420 href="#" onClick = "javascript:changeBGC('pink')">Click Pink href="#" onClick = "javascript:changeBGC('red')">Click Red href="#" onClick = "javascript:changeBGC('orange')">Click Green href="#" onClick = "javascript:changeFontFamily('serif')">Click SansSerif href="#" onClick = "javascript:changeFontFamily('sans-serif')">Click Serif

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!