Question

a web page contains many anchor <a> tag. one anchor tag is inside <h2> headings ....

a web page contains many anchor <a> tag. one anchor tag is inside <h2> headings . write jquery one line code that provides background color “maroon” to only this anchor tag
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The statement to change the background color in jQuery will be:
$("h2 a").css("background-color","maroon");

if you like the answer please provide a thumbs up.

Add a comment
Know the answer?
Add Answer to:
a web page contains many anchor <a> tag. one anchor tag is inside <h2> headings ....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create a CSS-styled Table Page For this Assignment you will first read the appropriate chapters in...

    Create a CSS-styled Table Page For this Assignment you will first read the appropriate chapters in the textbook and then a create web page, for example called table.html, in your ubunix.buffalo.eduaccount just as you did in Home Page Assignment. Assignment Requirements Your new web page should utilize the following HTML tags and include the following: A <body> tag that uses an appropriate style value to change the background color of the web page. Appropriate <table>, <tr>, <th>, and <td> tags...

  • HTML Web Page project: Need help to create a web page exactly as the example below...

    HTML Web Page project: Need help to create a web page exactly as the example below using HTML. I need the source code. Page 1 of CA272 Midterm Welcome to your name's CA272 Midterm Text In this class, I learned how to... 1. create an X)HTML web page, where I can 2. change the size of my font, 3. change the color of my fonts, 4. change my font style, 5. and change the background color of my web page....

  • PLEASE HELP: EASY CODE. Using your template create a webpage that contains a div. Give the...

    PLEASE HELP: EASY CODE. Using your template create a webpage that contains a div. Give the body element the id of TOOscary. Give the div the id of ghost. At the bottom of the page (just before the closing body tag) insert a script element. In the script element insert an assignment statement to save the content of the webpage using the variable candy. Hint: candy= document.getElementById(‘TOOscary’).innerHTML; We want to save it so we can bring it back after we...

  • JUDY'S HTML TUTORIAL MENU CREATING YOUR FIRST WEB PAGE The best way to make a web...

    JUDY'S HTML TUTORIAL MENU CREATING YOUR FIRST WEB PAGE The best way to make a web page is to just dive right in. Open Notepad. To open notepad in Windows, click the windows icon in the lower left corner of the screen and then type "notepad." Notepad is a text editor. Other text editors you may consider are TextPad, Sublime Text, or NotePad++. Do not use Word or WordPad; they are word processors. If you are using an Apple computer...

  • Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />...

    Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="style.css" /> <title>Daniel's Movie Page</title> </head> <body> <a href="hobbies.html">Hobbies</a> <h1>Movies and Actors</h1> <ol> <li class="ol-list1">Gravity</li> <li>Avenger</li> <li>Marshal</li> <li>Interstellar</li> <li>Dark Knight</li> <li>Superman</li> </ol> <ul> <li class="ul-list1">Robet Downey jr.</li> <li>Sharuk Khan</li> <li>Ranbir Kapoor</li> <li>Sidhhart Malhotra</li> <li>Angela Joli</li> <li>Leonardo DiCaprio/li> </ul> <h2>Favorite Movie</h2> <p> <b>Gravity:</b> The movie portrayed what happens to an astronaut if he/she is pushed away from spaceship.It was terrifying how much...

  • Assume that a web page contains only a single heading element. Where will the following code...

    Assume that a web page contains only a single heading element. Where will the following code position the heading element? position: relative; top: 25px; left: 50px; } The heading will move up by 50 pixels and to the left by 25 pixels. The heading will move down by 25 pixels and to the right by 50 pixels. The heading will move up by 25 pixels and to the left by 50 pixels. The heading will move down by 50 pixels...

  • Create a storyboard for a four (4) page Website (one (1) home page and three (3)...

    Create a storyboard for a four (4) page Website (one (1) home page and three (3) sub pages) and one (1) Cascading Style Sheet (.css). Using Microsoft Word, Microsoft Visio, or Dia, create a diagram of the layout and navigation structure. Explain the effects that the Cascading Style Sheet (.css) will have on the Web page. There must be a minimum of two (2) changes. Be sure to include detail. (Example: The Cascading Style Sheet (.css) will make the background...

  • 2. HTMIICSS Coding Write the XHITMI and CSS code necessary to recreate the following appearance on-screen. Adaprted from the WA.B.L page of the Washington Beer Commision webrite, washingtonbeer.c...

    2. HTMIICSS Coding Write the XHITMI and CSS code necessary to recreate the following appearance on-screen. Adaprted from the WA.B.L page of the Washington Beer Commision webrite, washingtonbeer.com ashington Home of the WASHINGTON BEER Commission What is WA.B.L? WA.DL, is a community of WAshington Ber Lovers celebrating the FRESH LOCAL AWARD WINNING c rah beer produced Its a Washingtion Deer Fan Club WA.B.L. Perks WABL neems, and oner businesses prometing lanty Washngton beer Each hirt with a design unique to...

  • 1. Write the HTML code to create a fragment identifier at the beginning of a web...

    1. Write the HTML code to create a fragment identifier at the beginning of a web page designated by the word “top”. 2. Write the HTML code to create a hyperlink to the named fragment designated by “top”. 3. Write the HTML code to assign the header element to the appropriate ARIA landmark role, as shown in the slides. 4. Write the HTML code to associate a web page with an external style sheet named myprint.css to configure a printout....

  • Design an original, professional web site following the specifications listed below. This web sit...

    Design an original, professional web site following the specifications listed below. This web site will be for a business you plan to set up for yourself or for someone else. The following is a detailed list of the requirements for your web site. READ them carefully. Instructions - Web Site Requirements for the web site: General: You will thoroughly test all your pages in more than one browser. All links MUST work. All graphics must show on the page. All...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT