Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801148
Author: Terry Felke-Morris
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 6, Problem 2AYK

Explanation of Solution

Missing code:

  • In style properties, set floating property as right, width=150px and border = 1px solid #000000 in nav style.
  • Similarly, set the margin property as 160px in main style.
  • Add the “nav” keyword precede the “a” style properties.
  • Set the “list-style-type” as none in unordered list “ul” style.

Modified code:

<!DOCTYPE html>

<!--HTML Tag-->

<html lang="en">

<!--Head Tag-->

<head>

<!--Title Tag-->

<title>Trillium Media Design</title>

<meta charset="utf-8">

<!--Style Tag-->

<style>

nav { float:right;

            width: 150px;

            background-color: #cccccc;

            border: 1px solid #000000; }

header { background-color: #cccccc;

        color: #663333;

        font-size: x-large;

        border-bottom: 1px solid #333333; }

main { margin-right: 160px; }

footer { font-size: x-small;

            text-align: center;

                clear: both; }

nav a { color: #000066;

            text-decoration: none; }

Blurred answer
Students have asked these similar questions
Create a styles.css page and add the following styles? H1 Background color: #f03Border on the bottom with the following rules Width: thin Style: solid Color: #003 Centered textMargin on all sides: 35 pixels H2 Text color: #333, bold p Font: GeorgiaText color: #030Padding of 15 pixels on all sides li Font family: ArialBackground color: grayText color: black, boldText size: 18 points a Color for all hyperlinks: Dark red: #CC0000 Rollover color for all hyperlinks: Dark green: #060   One additional style of your choice
Assume you have the set of HTML code below and you are linking to an external CSS style sheet. Write a style rule that will set the text color of all elements with the class football, to teal. <body> <h1>This is a heading</h1> <p>This is a paragraph</p> <p class="football">This is a paragraph</p> <p class="football">This is a paragraph</p> </body>
Question 1 What are the problems with the above code? Consider the syntax, structure, and writing style.  Question 2 Write CSS code that tidies up the above code. Your code should minimise the use of inline style.  Queston 3 Add a CSS selector for all paragraphs (p elements) under div elements with class “exam” to make their background colour blue.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning