You are creating a web page. In the heading element of the web page is the following code:<link rel=”stylesheet” href=”styles.css”><style> h2 { font-family: “Arial”; } h3 { font-family: “Calibri”; } </style>The code in the styles.css document is the following:h2 { font-family: “Times New Roman”; } .ad { font-family: “Courier-New”; }On the web page you have the following paragraph:<h2 id=”ad”>The best place to eat in town!<h2>What font will be used to display “The best place to eat in town!”?1 pointTimes New RomanArialCourier-NewCalibri
Question
You are creating a web page. In the heading element of the web page is the following code:<link rel=”stylesheet” href=”styles.css”><style> h2 { font-family: “Arial”; } h3 { font-family: “Calibri”; } </style>The code in the styles.css document is the following:h2 { font-family: “Times New Roman”; } .ad { font-family: “Courier-New”; }On the web page you have the following paragraph:<h2 id=”ad”>The best place to eat in town!<h2>What font will be used to display “The best place to eat in town!”?1 pointTimes New RomanArialCourier-NewCalibri
Solution
Arial
Similar Questions
Open and edit the stylesheet you saved in step 12 to meet the following specifications:Set the background for the web page so that it has a colour with a:• blue component of d2• red component of 74• green component of abSet the font for styles h1, h2 and h3 so that the browser selects and displays the font Times CY.If this font is not available, the browser selects and displays the font Times New Roman. Ifneither of these fonts are available, the browser must display its default serif font. Set the text instyles h1, h2 and h3 to black.Set style h1 so the text is centre aligned with a 16-point font.Set style h2 so the text is fully justified with a 12-point font.Set style h3 so the text is left aligned with a 10-point font.Set each table margin individually to 5% of the width and height of the browser window.Set all table cell padding to 10 pixels.Set all table borders and gridlines to be:• visible• separated• solid• black• 1 pixel wide.Set the spaces between the borders of all table elements to 10 pixels.Correct and edit the comment at the start of the stylesheet to contain your name, centre numberand candidate number.Save this stylesheet in your j2231 folder.Take a screenshot to show the file name and all contents of your stylesheet and place this in yourEvidence Document. Make sure the file name and all contents are clearly visible.[27]EVIDENCE 2A screenshot of your stylesheet with the required information clearly visible.www.dynamicpapers.com
You are creating a style for the contents of the heading 1 element. You want all H1 text to be displayed in the font “Arial” in all capital letters with the first letter of each word slightly bigger than all the other letters. Which style rule should you create?0 / 1 pointh1 { font-style: “Arial”; font-variant: small-caps; }h1 { font-family: “Arial”; font-variant: small-caps; }h1 { font-family: “Arial”; font-size: small-caps; }h1 { font-family: “Arial”; font-weight: small-caps; }
Refer to the code snippet below:<head> <style> body { font-family: Arial; color: blue; } p { color: red; } .logo { font-family: Papyrus; color: green; } </style></head><body> <div id="header"> <span class="logo">Web Development</span> </div> <div id="body"> <p>This is the body of my page</p> </div></body>Which styles end up being applied to span and p elements?<span> - color: green, font-family: Papyrus<p> - color: red, font-family: Arial<span> - color: green, font-family: Arial<p> - color: red, font-family: Arial<span> - color: green, font-family: Arial<p> - color: red, font-family: Papyrus<span> - color: blue, font-family: Arial<p> - color: blue, font-family: Arial
You are creating a web page. Some of the code is as follows:<p class =”short”>This is a short paragraph. </p> <p class = “long”>Once I’m done with short paragraphs I tend to move on to long paragraphs.</p> <h2 class=”long”>About Long Paragraphs</h2>You want to create one style rule that will change the font for the text “Once I’m done with short paragraphs I tend to move on to long paragraphs.” and the text “About Long Paragraphs”. Your rule should not affect the text “This is a short paragraph.”Which rule should you create?1 point#long { font-family: “Arial” }.long { font-family: “Arial” }h2.long { font-family: “Arial” }p.long { font-family: “Arial” }
why the preformatted text html code is incorrect is the following code <!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> <style> h2 { color:blue; } p { text-align: right; font-size: 32px; } pre { text-align: center; color:gray; font-family: "Comic Sans MS", cursive; } </style> </head> <body> <h2>This level 2 title is blue</h2><hr> <p>This paragraph has a font<br> twice as big as normal,<br> and is aligned right.</p><hr> <pre> This grey preformatted text is styled in the cursive font family. It is also centered and has a tooltip that says: I don't know why anyone would do this! </pre> </body> </html>
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.