I need to ask the user for which layout they prefer and then change the stylesheet attributes according to that. Below is what I have done so far with prompting the user for their preferred layout. I'm not sure how to change the attributes for the different layouts like if i need a if else or different functions. I was thinking to have certain attributes already in the style up in the head tag. For an example if they chose the modern layout it would just change the page to the attributes listed and if they wanted classic then I could change the style attributes. Any suggestions?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type = "text/css">
</style>
<script type = "text/javascript">
function start ()
{
var input = prompt( " Enter your favorite layout: modern or classic " );
}
</script>
</head>
<body id = "body" onload = "start ()">
<h1> Lab Excerise 8 </h1>
<p> This is some sample text. </p>
</body>
</html>