Question

n the Labs Labs 1 and 2, which increase in difficulty, require you to create webpages based on what you learned in the chapte

HTML 184 HTML Chapter 4 Applying CSS Styles to Webpages rmer ..todays urban cowbey it Figure 4-47 Instructions: Perform theApplying CSS Styles to Webpages HTML Chapter 4 HTML 185 c. In farm erstyles04.css, insert the following style to constrain thHTML 186 HTML Chapter 4 Applying CSS Styles to Webpages 2 d. Just below the .floatleft style in the CSS file, add the followi

n the Labs Labs 1 and 2, which increase in difficulty, require you to create webpages based on what you learned in the chapter; Lab 3 requires you to dive deeper into a topic covered in the chapter. Lab 1: Creating an External Style Sheet for City Farmer Problem: You work for a local but rapidly growing gardening supply company called City Farmer that specializes in products that support food self-sufficiency. The company has hired you to help create the home page. The content for the home page is in place, but it needs to be styled. Style the webpage shown in Figure 4-47 with an external style sheet
HTML 184 HTML Chapter 4 Applying CSS Styles to Webpages rmer ..today's urban cowbey it Figure 4-47 Instructions: Perform the following tasks: 1. Open cityfarmer04.html in your HTML editor from the Data Files for Students and then modify the comment at the top of the page to include your name and todays date. Make sure the ... tags contain the text City Farmer Home Page. 2. Start a new file in your text editor, and save it in the lablstyles folder with the name Earmerstyles04.css 3. Enter a CSS comment as the first line of the external style sheet with your name and todays date. Recall that CSS comments are entered within /andcharacters. 4. Enter a style to apply a uniform black text color, a uniform serif font, and light-blue background color to the body: body { color: #000000; background-color: B8DIEB font-family: "Times New Roman", serif 5. In the head section of the cityfarmer04.html file, enter an element to connect the page to the external style sheet: Save your changes, and then open or refresh cityfarmer04.html in a browser to make sure that the style sheet is correctly connected to the HTML file. Note that in this exercise, the style sheet is saved in the styles folder, so that path needs to be included in the href value. 6. Center the content by adding
0 0
Add a comment Improve this question Transcribed image text
Answer #1

//the given is not clear, As I understand, I am providing the code for HTML file........ I think you already have an HTML file. So just make some changes as I indicated in my code....

<! html code-->

<!DOCTYPE html>
<!-- write your name and date here -->
<html>
<head>
<!-- head section of the cityfarmer04.html file, enter an element to
connect the page to the external style sheet -->
   <link rel="stylesheet" href="styles/farmerstyles04.css">
   <title>City Farmer Home Page</title>  
</head>
<body>
<!-- center the content by adding <div> and </div> tags to sorround the content
of the wireframe, and apply style to center the content within <div> and </div>
tag -->
<!-- insert the <div id ="outerwrapper"> opening tag just
after the opening <body> tag -->
   <div id="outerwrapper">
  
       <img src="images/images1.jpg" alt="put your image here" class="floatleft" width="200" height="250">
       <h1>City Farmer
       <h2>...today's urban cowboy</h2>
  
   <!-- nav section of list -->
   <nav>
  
       <ul>
           <li><a href="#">Products</a>
           <li><a href="#">Order</a>
           <li><a href="#">News</a>
           <li><a href="#">Events</a>
       </ul>
   </nav>
   <div id="main">  
       <p>image is not clear please add your paragraph here</p>
       <img src="images/images2.jpg" alt="put your image here" class="floatright" height="100" width="250">
       <ol>
           <li>Write here........
           <li>Write here........
           <li>Write here........
           <li>Write here........
           <li>Write here........
           <li>Write here........
       </ol>
   </div>
   <!-- footer section -->
   <footer>
       <p>&copy; Copyright 2019 <br><a href="#">write link</a></p>
   </footer>
   </div>   <!-- close the outerwrapper -->
      
</body>
</html>

/** css file **/

/*   Write your name
and date here
   */

   /*
   style to apply a uniform black text color,
   a unifor serif font and light - blue
   background color of the body
   */
body{color: #000000;                      
   background-color: #B8D1EB;              
   font-family: "Times New Roman", serif;  
}
/*
insert the style to constrain the outerwrapper to 70% of the
widht of the screen and to center the content within the outwrapper
*/

#outerwrapper{width: 70%;                  
   margin: 0 auto 0 auto;                  
}

/*
Style the text in the footer section to have a font size of 0.75 cm and appear centered by adding
the following styles to the external stylesheet

*/
footer{font-size: 0.75em;                  
   text-align: center;                      
}

/*
style the content within the div id ="main" section to have a light - brown
background and 10px of padding on the top by adding the following style sheet
*/
#main{background-color: #C5A98B;          
   padding: 10px;                          
}
/*
Float the image in the header to the left with the following
style to the <h1>,<h2> and <nav> content moves to the right of the
image
*/
/*change the img selector to .floatleft */
.floatleft{float: left;                      
   margin-right: 3% /*push the content away from the image by adding a
   right margin to the img selector */
}
.floatright{float: right;                  
   margin-left: 3%
}
/*
Remove the bullets from the list items in the nav section by adding
the following style
*/
ul{list-style-type: none;
}
/*
clear the float so that the content for the div id="main" section starts on the own line by adding
a section style rule with a #main selector
*/
#main, footer{clear: both;
}

//output

City Farmer todays urban cowboy ... Products Order News Events image is not clear please add your paragraph here Copyright 2

//if you need any help regarding this solution ............. please leave a comment ........... thanks

Add a comment
Know the answer?
Add Answer to:
n the Labs Labs 1 and 2, which increase in difficulty, require you to create webpages based on what you learned in the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2 Apply Your Knowledge Reinforce the skills and apply the concepts you learned in this chapter Styling a Webpage Instru...

    2 Apply Your Knowledge Reinforce the skills and apply the concepts you learned in this chapter Styling a Webpage Instructions: In this exercise, you will use your text editor to create external, embedded, and inline styles for the Durango Jewelry and Gem Shop home page. You will style the sections of the semantic wireframe header, nav, main, and tooter and a div element that surrounds all of the content to center the content on the page. You will also float...

  • You've been hired to create a website for Eating Well in Season, a business in Glover,...

    You've been hired to create a website for Eating Well in Season, a business in Glover, Vermont, that delivers produce from local farms to its customers. Another team member has created a style sheet for the site but has been unable to resolve some errors in the code. You continue your work on the site by linking to and debugging the style sheet, incorporating a color scheme, and aligning the page content. index.html <!DOCTYPE html> <html lang="en"> <head> <title>Eating Well...

  • Apply the following styles: Set the width of the body element to 1000 pixels. Set the...

    Apply the following styles: Set the width of the body element to 1000 pixels. Set the width of the navigation element to 100%. Adjust the css and html to have your navigation list display horizontally (think floats and widths). Center the navigation element by setting the margin to auto. Clear the float for the section element. Set the width of all articles to 75%. Add a class to the articles that contains your favorite websites. Set the width of that...

  • Could you create a website based on html and css? Details in the below: Note: You...

    Could you create a website based on html and css? Details in the below: Note: You can put link that I can download that folder Based on Project 2-1, do the necessary changes to have a webpage structure of a header, main, and footer sections. Then: •Set the width of the page to 700px •Use the font family starting with Verdana •Move one of the images from your Project 2-1 to the header. •Set the width of the header image...

  • Can someone please verify if the answers are correct? thanks 1₧Which type of select does the...

    Can someone please verify if the answers are correct? thanks 1₧Which type of select does the # symbol represent? id class tag 2- Which selector controls the style of an element when the mouse moves over the element? :onHover :mouseOver :over :hover 3- Which property changes the background color of an element? background-color: bground: bg-color: b-color: 4-In which way can a set of CSS styles be inserted into multiple HTML pages? All of the above External style sheet Internal style...

  • 1. An _____ lets you place all of your CSS style definitions within one file that...

    1. An _____ lets you place all of your CSS style definitions within one file that you then reference from within each of your HTML page files. Group of answer choices external style set external sheet external style sheet external set sheet 2. Why should a designer use an external style sheet? Select all that apply. Group of answer choices One file controls all style elements for the entire website Removes the need to use HTML Make changes quickly External...

  • Create a CSS-styled Table Page For this Assignment you will first read the appropriate chapters in...

    Create a CSS-styled Table Page For this Assignment you will first read the appropriate chapters in the textbook and then a create web page, for example called table.html, in your ubunix.buffalo.eduaccount just as you did in Home Page Assignment. Assignment Requirements Your new web page should utilize the following HTML tags and include the following: A <body> tag that uses an appropriate style value to change the background color of the web page. Appropriate <table>, <tr>, <th>, and <td> tags...

  • Create an external style sheet named Lab05.css. In this style sheet put the following styles: At the top of the style sheet, add the line: @charset "utf-8"; Add this comment: /* Lab 5 Extern...

    Create an external style sheet named Lab05.css. In this style sheet put the following styles: At the top of the style sheet, add the line: @charset "utf-8"; Add this comment: /* Lab 5 External Style Sheet - Brandon  */ Style the h1 element with a background color of lightgreen and center the text. Style the p element with a blue text color and yellow background color. Style the p element of class .firstclass with a green text color. Style the...

  • You will use your text editor to create a table and apply table styles. First, you...

    You will use your text editor to create a table and apply table styles. First, you insert a table element. Next, you add a table caption, table rows, table headers, and table data. Then, you create style rules to format the table. Work with the apply08.html file and the applystyles08.css file. You will also use professional web development practices to indent, space, comment, and validate your code. 3. In the apply08.html file, add a table element within the main element....

  • Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />...

    Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="style.css" /> <title>Daniel's Movie Page</title> </head> <body> <a href="hobbies.html">Hobbies</a> <h1>Movies and Actors</h1> <ol> <li class="ol-list1">Gravity</li> <li>Avenger</li> <li>Marshal</li> <li>Interstellar</li> <li>Dark Knight</li> <li>Superman</li> </ol> <ul> <li class="ul-list1">Robet Downey jr.</li> <li>Sharuk Khan</li> <li>Ranbir Kapoor</li> <li>Sidhhart Malhotra</li> <li>Angela Joli</li> <li>Leonardo DiCaprio/li> </ul> <h2>Favorite Movie</h2> <p> <b>Gravity:</b> The movie portrayed what happens to an astronaut if he/she is pushed away from spaceship.It was terrifying how much...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT