1. Write the HTML for a paragraph that uses inline styles to configure the background color of green and the text color of white. 3. Write the CSS code for an external style sheet that configures the text to be brown, 1.2em in size, and in Arial, Verdana, or a sans-serif font. 5. Write the HIML and CSS code for an embedded style sheet that configures links without underlines; a background color of white; text color of black; is in Arial, Helvetica, or a sans-serif font; and has a class called new that is bold and italic. 7. Practice with External Style Sheets. In this exercise, you will create two external style sheet files and a web page. You will experiment with linking the web page to the external style sheets and note how the display of the page is changed.
Added by Juan Manuel K.
Close
Step 1
Step 1: Add a paragraph tag with an inline style setting background-color and color, for example: <p style="background-color: green; color: white;"> Show more…
Show all steps
Your feedback will help us improve your experience
Nick Johnson and 83 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Using a <style> tag, set the background-color to orange for all <p> tags. 4.1.1: Writing CSS rules Using a <style> tag, set the background-color to orange for all <p> tags. <!-- Your solution goes here --> <p>Paragraph 1 content</p> <p>Paragraph 2 content</p> <p>Paragraph 3 content</p>
Akash M.
What is the correct HTML for adding a background color? <background> yellow</background> <body bg="yellow"> <body style="background-color: yellow;">
Florencia C.
Write a CSS rule that makes all text 1.5 times larger than the base font of the system and colors the text red. Full code please
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD