Knowee
Questions
Features
Study Tools

You are creating a headline for a web page advertising a sale. You have the following code in the web page:<h1>Today Only! All items <font class=”slashed”>twenty</font> fifty percent off!</h1>You need to create a style rule that will run a horizontal line through the center of the word twenty so it looks like this: twentyWhat style rule should you create?1 pointh1.slashed { text-decoration: line-through; }h1.slashed { text-decoration: strike-through; }h1.slashed { text-transform: strike-through; }h1.slashed { text-indent: top; }

Question

You are creating a headline for a web page advertising a sale. You have the following code in the web page:<h1>Today Only! All items <font class=”slashed”>twenty</font> fifty percent off!</h1>You need to create a style rule that will run a horizontal line through the center of the word twenty so it looks like this: twentyWhat style rule should you create?1 pointh1.slashed { text-decoration: line-through; }h1.slashed { text-decoration: strike-through; }h1.slashed { text-transform: strike-through; }h1.slashed { text-indent: top; }

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct style rule to create would be:

.font.slashed { text-decoration: line-through; }

This rule will apply a line-through text decoration to any element with the class "slashed" within an h1 element with the class "font". This will create a horizontal line through the center of the text, giving the appearance of the text being crossed out.

Similar Questions

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” }

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

You really want to emphasize a headline on a web page. To do this, you would like to create text with two shadows. You want one shadow to be gray and the other shadow to be black. The gray shadow should have a vertical offset of 3px and a horizontal offset of 2px. The black shadow should have a vertical offset of 4px and a horizontal offset of 3px. The text is the content of a heading 1 element. The text color is blue. You are going to use the embedded style sheet.What should you add to the h1 style rule?1 pointbox-shadow: 2px 4px gray, 3px 3px;box-shadow: 2px 3px gray, 3px 4px;box-shadow: 2px 3px gray, 3px 4px black;box-shadow: 2px 4px gray, 3px 3px black;

You are creating a web page for an online magazine. You want to pull out a quote from the content. The quote should appear to the right of the main paragraphs in a shaded box. You add the following to the main web page:<aside><q>It was a nightmare.</q></aside>In the linked stylesheet, you create the following style rule:aside { width: 10%; padding: 10px; font-style: italic; background-color: lightgray; margin-left: 20px; }When you test the web page, the quote does not appear to the right of the main text.What should you add to the style rule?1 pointfloat: right;text-align: right;margin-right: 30px;position: right;

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; }

1/1

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.