Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801346
Author: FELKE-MORRIS
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 3, Problem 4MC
Program Description Answer
The code <link rel="stylesheet" href="style.css"> is used to associate a web page with an external style sheet.
Hence, the correct answer is option “C”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
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>
Use the given code to answer the following questions:
External.css label { color: darkgray; } home. Html
<header>
<link ref “stylesheet” type”text/css” href= “external .css”
<style>
Label {
Color: darkblue;
}
</style>
</header>
<body style=”color: darkred;”>
<p>
<input type “checkbox” name =”chkOrange”
<label style “color: darkcyan;” for = “chkOrange”>Oranges</label>
</p>
</body>
Which color is shown for the < label> tag?
Darkred
Darkcyan
Darkgray
Darkblue
Which statement about defining CSS properties using jQuery is correct?
a.
You can set the values of multiple CSS properties for the selected element(s) by passing them to thecss()method in JSON format.
b.
jQuery can always be used to access the CSS values for font size or color as defined in the style sheet for a web app.
c.
The jQuerycss()method returns the values for CSS styles using the same units as in the style sheet.
d.
To retrieve the font size of the main h1 heading on a web page, you should use the jQuery expression $("h1#main").css("font-size").
Chapter 3 Solutions
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Ch. 3.4 - Prob. 1CPCh. 3.4 - Prob. 2CPCh. 3.4 - Prob. 3CPCh. 3.8 - Prob. 1CPCh. 3.8 - Prob. 2CPCh. 3.8 - Prob. 3CPCh. 3 - Prob. 1MCCh. 3 - Prob. 2MCCh. 3 - Prob. 3MCCh. 3 - Prob. 4MC
Ch. 3 - Prob. 5MCCh. 3 - Prob. 6MCCh. 3 - Prob. 7MCCh. 3 - Prob. 8MCCh. 3 - Prob. 9MCCh. 3 - Prob. 10MCCh. 3 - Prob. 11MCCh. 3 - Prob. 12FIBCh. 3 - Prob. 13FIBCh. 3 - Prob. 14FIBCh. 3 - Prob. 15FIBCh. 3 - Prob. 1AYKCh. 3 - Prob. 2AYKCh. 3 - Prob. 3AYKCh. 3 - Prob. 1HOECh. 3 - Prob. 2HOECh. 3 - Prob. 3HOECh. 3 - Prob. 4HOECh. 3 - Prob. 5HOECh. 3 - Prob. 6HOECh. 3 - Prob. 7HOECh. 3 - Prob. 8HOECh. 3 - Prob. 9HOECh. 3 - Prob. 1WRCh. 3 - Prob. 2WRCh. 3 - Prob. 1FWD
Knowledge Booster
Similar questions
- You saved your style options as "webStyle.css" in a subfolder called "styles." What line do you include in the head section of your HTML file to use your styles? <link rel="stylesheet" type="text/css" href="styles/webStyle.css" /> <link rel="stylesheet" href="styles/webStyle.css" /> <link rel="stylesheet" href="webStyle.css" /> <link rel="stylesheet" type="text/css" href="webStyle.css" />arrow_forwardBy using the program below: Kindly use CSS, Set the text color for the page to "red", and the text color for <h1> to "blue". <!DOCTYPE html> <html> <head> <style> </style> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>arrow_forwardCreate a web page in which the user is allowed to select the page’s background color and whether the page uses serif or sans serif fonts. Then change the body element’s style attribute accordingly.arrow_forward
- Assume you have the following HTML code in an html file and you are linking to an external CSS stylesheet. Write a style rule that will set the background color of the <h1> element to "orange". <body> <h1>This is a heading</h1> <p>This is a paragraph</p> <p>This is a paragraph</p> </body>arrow_forwardBy using the program below: Kindly Set the <p> to "italic", "20px" and "Verdana". <!DOCTYPE html> <html> <head> <style> </style> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>arrow_forwardCreate 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 choicearrow_forward
- CSS Q1. By using the program below: Kindly change the color of the element with id="para1", to "red". <!DOCTYPE html> <html> <head> </head> <body> <h1>This is a Heading</h1> <p id="para1">This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html> Q2. By using the program below: Kindly use CSS, Set the text color for the page to "red", and the text color for <h1> to "blue". <!DOCTYPE html> <html> <head> <style> </style> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html> Q3. By using the program below: Kindly Change the color of all elements with the class "colortext", to "red". <!DOCTYPE html> <html> <head> </head> <body> <h1>This is a Heading</h1> <p>This is a…arrow_forwardCan someone help me fix my flexboxes so all the boxes take up the same amount of space instead of the right box being crunched and my image not showing up? I am trying to get it so that the right box not only has the same amount of space on the page as the other two but also the image I have inside takes up that entire right most box. HTML CODE: <title>Flexbox Coding</title> <link rel="stylesheet" href="style.css"></head><body> <header class="header-image"> <img src="night-planets-header-8854-1024x300.jpg" alt="Header Image"> </header> <div class="flex-container"> <div> <ul> <li><a href="Overview.html">Overview</a></li> <li><a href="The_First_Doctor.html">The First Doctor</a></li> <li><a href="The_Second_Doctor.html">The Second Doctor</a></li>…arrow_forwardQ7. By using the program below: Kindly Set the font family for the page to "Courier New", and the font family for <h1> to "Verdana". <!DOCTYPE html> <html> <head> <style> </style> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>arrow_forward
- The wireframe is the home page of Nuksoft Limited. The company through its Software Development Department is outsourcing the development of their web application to a potential GCTU Student of which you have won the contract. You are expected to create an HTML file with name index.php and a Cascading Style sheet with name, nuksoft_styles.css. Make use of only HTML tags. All styles should be control by the css file. Save all files in a folder and save all files related to this question in it. The name of the folder should be Nuksoft followed by your index number (e.g. Nuksoft-1081015001).a.Nuksoft provides the following services.i. Application Developmentii. Installation of CCTViii. Hardware and Networkingiv. IT ConsultancyCreate a drop-down menu using an internal css style and javascript displaying the services as a sub menu. Link each of the sub menu to a unique page.b. Create a similar menu for products. Nuksoft provides three main products to her customers. Each of these product…arrow_forwardThe image is the home page of Nuksoft Limited. The company through its Software Development Department is outsourcing the development of their web application to a potential GCTU Student of which you have won the contract. You are expected to create an HTML file with name index.php and a Cascading Style sheet with name, nuksoft_styles.css. Make use of only HTML tags. All styles should be control by the css file. Save all files in a folder and save all files related to this question in it. The name of the folder should be Nuksoft followed by your index number (e.g. Nuksoft-1081015001).a.Nuksoft provides the following services.i. Application Developmentii. Installation of CCTViii. Hardware and Networkingiv. IT ConsultancyCreate a drop-down menu using an internal css style and javascript displaying the services as a sub menu. Link each of the sub menu to a unique page.b. Create a similar menu for products. Nuksoft provides three main products to her customers. Each of these product…arrow_forwardChoose a CSS external style sheet file to validate; perhaps you have created one for your own website. Otherwise, use an external style sheet file that you worked with in this chapter. Use the W3C CSS validator at http://jigsaw.w3.org/css-validator. If your CSS does not immediately pass the validation test, modify it and test again. Repeat this process until the W3C validates your CSS code. Write a one- or two-paragraph summary about the validation process that answers the following questions: Was the CSS validator easy to use? Did anything surprise you? Did you encounter a number of errors or just a few? How easy was it to determine how to correct the CSS file? Would you recommend the validator to other students? Why or why not?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- New Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning