How to add CSS styles Styles to Elements with Particular
Attributes?

Answer Posted / swapna

The style rule below will match all input elements that has
a type attribute with a value of "text"
Input[type="text"] {background-color: blue}

id Selector

Defining styles for HTML elements with the id selector. The
id selector is defined as a #.
The style defined below will effect the element that has an
id attribute with a value of "green? ie., id=?green?
Ex: #green {color: green}
The style rule below will match the p element that has an
id with a value of "para1? ie., <p id=?para1?>
p#para1
{
text-align: center;
color: red
}
Do NOT start a class name or ID name with a number


Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is singleton a design pattern?

770


Why is singleton bad?

754


Is bean a singleton?

730


What is the difference between proxy and adapter?

783


What is clean architecture?

762


What is onion architecture?

842


What is the difference between factory and builder design pattern?

679


What are the languages used in the design pattern?

782


What is the difference between architecture and design?

789


2. Create your own definition of a system. Based on the “system” definitions a. Identify your viewpoint of shortcomings in the definitions. b. Provide rationale as to why you believe that your definition overcomes those shortcomings. c. From an historical perspective, identify three precedented systems that were replaced by unprecedented systems.

2922


What is a lazy initialization in singleton?

819


What is meant by design pattern?

774


what are the creational design patterns

837


What is the executor design pattern?

919


What is the factory pattern in the design pattern?

907