answersLogoWhite

0

Try this technique: ----

.class {attribute:value; attribute:value;} ----

This will effect any element with the class name .class. That means img.class, a.class, and div.class, for example, would be effected.

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

What are attributes and methods in class?

Attributes are the class member variables, the data, fields or other properties that define the class state. Methods are the functions of a class, the operations that define its behaviour, typically working in conjunction with the class member attributes to either alter the class state (mutators) or query the class state (accessors). Special methods such as the class constructors, its destructor and conversion operators are invoked indirectly through compiler-generated code while all others are called directly via programmer-generated code.


In java difference between classes and object in tabluar form?

A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.


What is storage class Define storage class with the help of example?

the storage class is define as 10th class and 9th class and the examples are 10b and 9a


What is an Attribute in OOPS?

•Attributes define the characteristics of a class. •The set of values of an attribute of a particular object is called its state. •In Class Program attribute can be a string or it can be a integer LEarn Design Pattern,C#,ASP.NET,LINQ,Sharepoint,WCF,WPF,WWF


When do you get a default constructor When the class has no other constructors When you define at least one constructor When you define a class None of the above?

hjuki

Related Questions

What are attributes and methods in class?

Attributes are the class member variables, the data, fields or other properties that define the class state. Methods are the functions of a class, the operations that define its behaviour, typically working in conjunction with the class member attributes to either alter the class state (mutators) or query the class state (accessors). Special methods such as the class constructors, its destructor and conversion operators are invoked indirectly through compiler-generated code while all others are called directly via programmer-generated code.


What is meant by inheritance in c plus plus language?

Inheritance in C++ and in other Object Oriented languages is the creation of a class that incorporates a different class. The child (or derived) class "inherits" all of the elements (attributes and methods) of the parent (or base) class. Depending on the design of the base class, the derived class can use methods and attributes of the base class as if they were its own. Typically, however, attributes of the base class are private to the base class and inaccessible to the derived class so as to maintain class hierarchy and data encapsulation.


When you define a c plus plus class what items are considered part of the interface?

The interface of a C++ class is the public methods and attributes that are exposed by the class. In a pure abstract base class, the interface is enforced by the compiler in each of the derived child classes.


In java difference between classes and object in tabluar form?

A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.


What is a subclass and when is a subclass of use in data modeling?

A subclass is a specialized version of a class that inherits attributes and methods from its parent class. In data modeling, a subclass is useful for representing entities that have additional attributes or behaviors that are specific to a subset of instances of the parent class. Subclasses help organize data more efficiently and allow for more specific modeling of a system.


What is storage class Define storage class with the help of example?

the storage class is define as 10th class and 9th class and the examples are 10b and 9a


Define class string and implement all the functions related to strings?

define class string


What is an Attribute in OOPS?

•Attributes define the characteristics of a class. •The set of values of an attribute of a particular object is called its state. •In Class Program attribute can be a string or it can be a integer LEarn Design Pattern,C#,ASP.NET,LINQ,Sharepoint,WCF,WPF,WWF


Which class is used to define the controls in c sharp?

.Ascx class file is used to define the controls in c#


What is the subgroup classification follows class?

The subgroup classification is a way to further categorize individuals within a class based on shared characteristics or attributes. It helps to identify more specific groups with commonalities that may not be apparent when examining the class as a whole.


When do you get a default constructor When the class has no other constructors When you define at least one constructor When you define a class None of the above?

hjuki


What is the difference between the Class attribute and the ID attribute in HTML and CSS?

An ID is used to define the style properties of a specific thing whereas a class is used to define something you may use multiple times. For instance, if you are going to make a loginbox you will use an id because you will only have one identical loginbox on the page whereas if you wanted every quote to be given the same style you would use a class, this would mean all elements with class=quote (after you define it in the CSS) would always style quotes to your needs. In short, you could use either as they have pretty much the same outcome, but organised CSS is good CSS so you are better off using classes and ID's as i have defined them above.