Question: Can you fix what is wrong with this CSS code at the bottom is what I have done and all the html files that are

Can you fix what is wrong with this CSS code at the bottom is what I have done and all the html files that are needit for this are all correct. i just need to fix this css file.

dirctions

Instructions: 1. Open the cssterminology04.html, csssyntax04.html, cssdeclarations04.html, and cssblock04.html les in your HTML editor from the Data Files for Students and then modify the comment at the top of each of the four pages to include your name and todays date. 2. Enter CSS terminology within the

tags of cssterminology04.html, CSS syntax within the <title> tags of csssyntax04.html, CSS declarations within the <title> tags of the cssdeclarations04.html page, and CSS block styles within the <title> tags of the cssblock04.html page. 3. Open the cssterminology04.html page in the browser and read the page. Tap or click the links for the three other pages and read them as well. Note that the content goes wall-to-wall in your browser. To center the content within a small left and right margin, add padding between the content and border, and then change the background color to light gray. To do so, create an external style sheet with the following rules for the content marked up between <div id="main"> and </div> tags: #main {width: 90%; margin: 0 auto 0 auto; padding: 2%; background-color: #D7D7D7; } 4. Save the le as css04.css in the same folder as the HTML webpages and then add a comment as the rst line of the le with your name and the current date. 5. Link the css04.css stylesheet to each page by entering the following element to the section in each page. <link rel="stylesheet" href="css04.css"> 6. Save and refresh your webpages after every step and tap or click each link to see the impact of each new set of rules on the four pages. Style <h1> content with a dark red text color by adding the following style to the external style sheet: h1 {color: #CF0000;} 7. To study how borders are applied to block paragraph content, add the following rule to apply a blue, 1px, solid border to all sides of every paragraph: p {border: blue 1px solid;} Save your changes and then refresh your webpages and view the borders around the paragraphs. 8. To study how oat is applied, you will work with the cssblock04.html page. Read the paragraphs that surround each example. Example 1 proves that when an image is followed by another image, they arrange themselves in a line, as inline content. Example 2 shows how a single image appears to be block content, but only because the content that follows the image is a block and thus starts on its own line. You will modify the image after the Example 3 paragraph to oat left. To do this, add class="floatleft" to the tag that follows the Example 3paragraph. (Hint: The order of attribute value pairs in an HTML tag is not technically signicant, but it is common to put the most important attributes rst. Typically class and id attribute values are listed early in the tag.) Add the following rule to the external style sheet: .floatleft {float: left;} </h1><p>to observe how the image after the Example 3 paragraph oats left. Content that follows the oated image lls the space to the right of the oated image. 9. You want the Example 4 paragraph to start on its own line, so you need to clear the oat at that point. To study how oat is cleared, add class="clearfloat" to the opening </p><p> tag for the Example 4 paragraph. Add the following rule to the external style sheet: .clearfloat {clear: both;} Save the les and refresh the cssblock04.html page in the browser to observe how the Example 4 paragraph is cleared of the oat and acts as normal block content again, starting on its own line. 10. You want the image after the Example 4 paragraph to oat right. To do this, add class="floatright" to the <img src="" alt="Can you fix what is wrong with this CSS code at the"> tag that follows the Example 4 paragraph. Add the following rule to the embedded style sheet: .floatright {float: right;} Save the les and refresh the cssblock04.html page in the browser to observe how the image following the Example 4 paragraph oats right. Floating content right can be tricky considering that people read English from left to right. Content that oats right is positioned before the content that ows next to it in the HTML le. 11. Change the existing navigation content into a horizontal navigation bar. To do this, rst remove the bullets from the list items in the nav area. List item content naturally ows as block content, with each list item on its own line. To create a horizontal navigation system with each of the links on the same line, you also must add a rule to change the list item content from block to inline. To do this, add the following rules to the style sheet: nav li {list-style-type: none; display: inline; } Save the les and refresh the pages in the browser to observe the new horizontal navigation system. 12. Tap or click the CSS Terminology link to open the cssterminology.html page in the browser. This page lists several key CSS terms. You want to style the terms in bold. To do this, you will mark up the CSS key terms using the <span></span> tags. (The span element is an inline element that allows you to mark up and style content within a paragraph without creating a new line.) Mark up the following CSS terms using both the <span> tag and a class="cssterm" attribute in the opening <span> tag as follows: (Hint: Be careful to add only the opening and closing <span> tags and not change or delete any of the existing content or HTML code.) <span>External styles</span> (rst paragraph) <span>Embedded styles</span> (second paragraph) <span>Inline styles</span> (third paragraph) <span>Rules</span> (fourth paragraph) <span>selector</span> (fth paragraph) <span>declaration</span> (sixth paragraph) <span>Inheritance</span> (seventh paragraph) <span>Specicity</span> (eighth </span></span></span></p> <p>Add the following rule to the external style sheet to style the terms marked up by the class="cssterm" attribute value: .cssterm {font-weight: bold;} Save the les and refresh the pages in the browser to observe the new bold terms on the cssterminology04.html page. 13. Validate your HTML and CSS pages and x any errors.</p> <p> </p> <p> </p> <p> /* 2/11/2017*/ </p> <p>css terminolg</p> <p>nav li { list-style-type: none; display: inline; } nav li { list-style-type: none; display:</p> <p>cssterminology04.css</p> <p>csssyntax04.css</p> <p>cssdeclarations04.css</p> <p>cssblock04.CSS Styles for Blocks and Float </p> <p>#main { width: 90%; margin: 0 auto 0 auto; padding: 2%; background-color: #D7D7D7; } </p> <p>CSS: Cascading Style Sheets - Terminology</p> <p>p.one { border: blue 1px solid; }</p> <p> </p> <p> </p> <p>External styles, also called linked styles, are separated into a separate file with a .css extension.</p> <p>p.two { border: blue 1px solid; } </p> <p>Embedded styles, also called internal styles, are inserted within style tags in the head section of an .html page.</p> <p>p.three { border: blue 1px solid; } </p> <p>Inline styles are inserted in the opening tag using a style attribute.</p> <p>p.four { border: blue 1px solid; }</p> <p> </p> <p> </p> <p>Rules are also referred to as styles and consist of a selector and a set of one or more declarations.</p> <p>p.four { border: blue 1px solid; }</p> <p> </p> <p> </p> <p>A selector may "select" different areas in the html to style:</p> <p>An element name such as body or h1</p> <p>A class value. class="floatright" connects to the .floatright selector.</p> <p>An id value. id="outerwrapper" connects to the #outerwraper selector.</p> <p>Multiple items that are separated by commas. For example h1, h2, h3</p> <p>A descendant selector (for example, nav li) which selects only the li content within the nav tags.</p> <p>A declaration (for example, color: #FFFFFF; ) is made up of a CSS property followed by a colon: followed by the property value and ends with a semicolon; </p> <p>Inheritance means that CSS properties can be inherited from a parent container. For example, paragraphs and headings will inherit the font and color rules of the body selector. Properties that affect the placement of elements such as padding, borders, and margins are not inherited.</p> <p>Specificity means that if the background-color property was applied to the body, p (paragraph), and #leftcolumn selectors in the same style sheet, the more specific selector wins. So the rule for the #leftcolumn selector would beat the p rule which would beat the body rule.</p> <p>Specificity also means that that if two or more rules for the same property apply to the same content, the closer rule will win. For example, if the background-color property was created for the body selector in three different style sheets (inline, embedded, external), the inline style would beat the embedded style which would beat the external style.</p> <p>The rules by which styles are applied help explain the "cascade" in cascading style sheets.</p> <p> </p>

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!