Question

In: Computer Science

Related to HTML/CSS. Please choose correct answer. Descendent selectors can be used to select.... a. only...

Related to HTML/CSS. Please choose correct answer.

Descendent selectors can be used to select....

a. only nested element

b. only parent/child element

c. only nested type selector

d. any element state

Solutions

Expert Solution

Answer = (b) only parent/child element

Rather I would say its more appropriate answer would be to select parent/descendent element because if we look at the example of a Descendent selectors,

let's say

SYNTAX OF Descendent selectors :

selector1"space"selector 2

{

function list;

}

the above function will select any html element targated by selector 2, which is a Descendent of element targated by selector1.

NOTE: "space" is just to let you know that there is a space between selectror1 and selector2.

This is the Example of Descendent selectors =

div p

{

border:5px solid green;

}

It select only those p elements which are the Descendent of any div element and then make a border of solid green colour of width 5 px around them.

In the Above example it targets elements p (which is written after the space) , which are Descendent of selector "div" (which is written before space).

If you have any doubts,just let me know!!!


Related Solutions

Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Please no JavaScript...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Please no JavaScript or Bootstrap. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious. Part 1: Content (HTML) After you decide the theme of your website, create HTML pages with the content you want to present. Remember to...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious. Part 1: Content (HTML) After you decide the theme of your website, create HTML pages with the content you want to present. Remember to separate content from presentation. The...
Please give a brief justification for the correct answer you select: Macroeconomics is concerned with Only...
Please give a brief justification for the correct answer you select: Macroeconomics is concerned with Only long-run trends in economic activity. Only short-run fluctuations in the business cycle. Both long-run trends and short-term fluctuations in economic activity. Only with changes in overall price level. Which one of the following is not a reason for a country collecting national income statistics? to calculate changes in the cost of living to estimate the rate of economic growth to calculate changes in the...
Match each function to the correct item. Answers can only be used once, so choose the...
Match each function to the correct item. Answers can only be used once, so choose the BEST answer. Question Generator potential Touch Acuity Smell Transmits sensory information about proprioception to cortex All Answer Choices A. Chemoreceptor B. Interneuron C. Autonomic nervous system D. Receptor density E. Mechanoreceptor F. Afferent neuron G. Efferent neuron H. Electroreceptor I. Dorsal Column
Please write "my account" page program by using HTML and CSS
Please write "my account" page program by using HTML and CSS
please give me true answer only without rationale (choose correct answer) , quickly?? Where does child...
please give me true answer only without rationale (choose correct answer) , quickly?? Where does child sexual abuse occur most often?       Reflection Summarization Empathy Silence **** Which is a NON-therapeutic technique?       Offering self     Broad openings Making observations Advising **** The nurse realizes that the pt. is having a hard dealing with their diagnosis. The pt. states that he is feeling alone with no one who understands. Which type of communication could be the most useful...
We went over the format and syntax of CSS. Below, write the correct CSS syntax to make the body of an HTML document the color blue.
We went over the format and syntax of CSS. Below, write the correct CSS syntax to make the body of an HTML document the color blue. Also write what each keyword represents (example: the selector? property? etc.)
1. Choose the best match. Each of the answer can only be used once! This type...
1. Choose the best match. Each of the answer can only be used once! This type of bonds occurs both between fully charged group and between the partially charged groups on polar molecule. Hydrogen bonds This type of bonds forms when two atoms come very close together to share one or more of their electrons. Covalent bonds This type of bonds form when a hydrogen atom is â sandwichedâ between two electron-attracting atoms (usually oxygen or nitrogen). Hydrophobic forces This...
Please use HTML and CSS - Create the overlay and popup: Note: this is my original...
Please use HTML and CSS - Create the overlay and popup: Note: this is my original code just add it to to make the next steps please: HTML: <nav> <ul class="Login-button"> LOG IN</ul> </nav> CSS: *{ margin: 0; padding: 0; list-style-type: none; } nav { height: 50px; background: #DEDFE0; display: flex; align-items: center; padding: 0 20px; } .login-button { padding: 5px 8px; cursor: pointer;} .login-button: hover { background: #BCBDC0; } PLEASE do the following: Create a transparent grey overlay over...
Please select the correct answer: 1. The patient ask nurse : how can I prevent the...
Please select the correct answer: 1. The patient ask nurse : how can I prevent the reoccurrence of urinary tract infection?. The nurse uses evidenced-based practice and advised patient about which of the following? A – Take anaphylactic antibiotics B – Urinate regularly every 3 hours C – Consume cranberry juice D – Obtain a urinalysis monthly 2. A patient with acute kidney injury is undergoing dialysis for the first time. The charge nurse monitor the patient closely for dialysis...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT