Question

In: Computer Science

Provide a style rule to remove underlining from hypertext links marked with the <a> tag and...

Provide a style rule to remove underlining from hypertext links marked with the <a> tag and nested within a navigation list.

  1. nav > a {text-decoration: none;}

  2. nav > a {text-decoration: no-underline;}

  3. nav a {text-decoration: none;}

  4. nav a {text-decoration: underline=“no”;}

Solutions

Expert Solution

If you want to give css in nested tags then you must write consecutive classname.

For example,

<ul>

<li> 1 </li>

</ul>

To give style in li element then, you can define that classname as ul li.

The descendant selector matches all elements that are descendants of a specified element. That is defined by space.

Now, here we have anchor tag as a descendants of nav tag so we can write it as nav a

'>'(child selector) will target elements which are direct children of a that element. Here we have nav > a. For this specific problem,

we have anchor tag as a direct child of nav element. so we cab write nav > a

To remove unerline from the anchor tag then we can use css property, text-decoration : none;

So, the answer will be :

nav a {text-decoration: none;}

nav > a {text-decoration: none;}

text-decoration has multiple values like underline, line-through, overline etc. You can use it as requirements.

text-decoration has values like no-underline or underline=“no” so, text-decoration: no-underline and text-decoration: underline=“no” can't possible as an answer. So other two options can't be an answer.


Related Solutions

1. Which tag do you use to access an external style sheet? * a) <a> b)...
1. Which tag do you use to access an external style sheet? * a) <a> b) <head> c) <style> d) <link> 2. Which of the following CSS properties below specifies the name of the font to use? * a) font-face b) font-type c) font-family d) font-use 3. Choose the INVALID value for the area element’s shape attribute. * a) square b) rect c) circle d) poly 4. Which of these CSS properties DOES NOT have the top, right, left, and...
Create a style rule for the body element that: Sets the width to 90% of the...
Create a style rule for the body element that: Sets the width to 90% of the browser window, ranging from a minimum width of 640 pixels up to a maximum width of 1024 pixels. Sets the top/bottom margin to 30 pixels and the left/right margin to auto. Displays the body as a CSS grid. Creates six grid columns each with a width of 1fr. Creates five grid rows with widths of 50 pixels, 30 pixels, 1fr, 1fr, and 100 pixels....
A dress is marked down 15%, and then it is marked down 25% from the discounted...
A dress is marked down 15%, and then it is marked down 25% from the discounted price. By what percent is the dress marked down from the original price after both discounts? Show all work. Why is the discount not equal to 40% off of the original price?
CSS Write a document wide style block (include the correct HTML tag) to set all <p>...
CSS Write a document wide style block (include the correct HTML tag) to set all <p> tags to be double spaced and justified (not ragged left / right text)
figure of speach... examples paragraph Is my leadership style marked by openness and honesty? Do others...
figure of speach... examples paragraph Is my leadership style marked by openness and honesty? Do others easily approach me? To what extent am I known as a good team player? Is my communication with the team candid and straightforward? To what extent do I encourage this communication style?
This exercise I'm providing links to videos from movie musicals. Musical pieces provide a plethora of...
This exercise I'm providing links to videos from movie musicals. Musical pieces provide a plethora of nonverbal context that aids in plot of the entire piece and just that musical number as well. I want you to discuss how the non-verbal aids in the context of the song. Video clips are from the musicals Hairspray, Grease, Chicago, & Greatest Showman https://youtu.be/FkODKl7jOrE https://youtu.be/ZW0DfsCzfq4 https://youtu.be/gRi2T6mgH3Y https://youtu.be/CjxugyZCfuw
What is the rule of 72? Please provide a simplified overview of how this rule of...
What is the rule of 72? Please provide a simplified overview of how this rule of thumb works over a wide range of interest rates. (For example, this works really well for interest rates between a to b, is only so so when interest rates vary from c to d, and does not work well at all when we apply interest rates in the range of e to f). Note: You should describe the first calculation only here, you do...
1. Go to the Footer Styles section and create a style rule that displays the footer...
1. Go to the Footer Styles section and create a style rule that displays the footer only when both margins are clear of floating objects. 2. Go to the Topics Styles section. This section sets the styles for a list of four topics describing what the company is offering. Karen wants this list to also be displayed horizontally on the page. For list items within the ul element with the id topics, create a style rule to: a) display the...
For all img elements create a style rule that applies a sepia filter with a value...
For all img elements create a style rule that applies a sepia filter with a value of 1. Add a black box shadow with horizontal and vertical offsets of 0 pixels and a blur radius of 20 pixels. Create the following style rules for the five image elements: For the img1 image, translate the image -150 pixels along the z-axis. For the img2 image, rotate the image 90 degrees around the x-axis and translate the image -150 pixels along the...
Describe "Disjointness Constraints" and provide an example business rule involving an overlap rule.
Describe "Disjointness Constraints" and provide an example business rule involving an overlap rule.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT