Question

In: Computer Science

Write a rule for a class selector named heading. Setthe color property to red and...

Write a rule for a class selector named heading. Set the color property to red and the font-family property to arial. Apply the heading class to the


element in the document

Solutions

Expert Solution

CSS:

.heading {
        color: red;
        font-family: arial;
}


Since, you have not shared your document, i can not see how you are using the heading1 in document.. However it should be easy to change.. You can do similar to below:

class="heading">heading data


Related Solutions

Write a rule for an id selector named heading. Set the color property to blue and...
Write a rule for an id selector named heading. Set the color property to blue and the font-family property to georgia. Apply the heading class to the <h1> element in the document. this is in css
Write a rule for an id selector named subheading. Setthe border-bottom property to solid 1...
Write a rule for an id selector named subheading. Set the border-bottom property to solid 1 px and the font-family property to arial. Apply the heading class to theelement in the document.
Write a Data Element Class named Property that has fields tohold the property name, the...
Write a Data Element Class named Property that has fields to hold the property name, the city where the property is located, the rent amount, the owner's name, and the Plot to be occupied by the property, along with getters and setters to access and set these fields. Write a parameterized constructor (i.e., takes values for the fields as parameters) and a copy constructor (takes a Property object as the parameter). Follow the Javadoc file provided.Write a Data Element Class...
Create a class named Blanket with fields for a blanket’s size, color, material, and price. Include...
Create a class named Blanket with fields for a blanket’s size, color, material, and price. Include a constructor that sets default values for the fields as Twin, white, cotton, and $30.00. Include a set method for each of the first three fields. The method that sets size adds $10 to the base price for a double blanket, $25 for a queen blanket, and $40 for a king. The method that sets the material adds $20 to the price for wool...
how to write a function that clears every pixel and sets it to the Red color....
how to write a function that clears every pixel and sets it to the Red color. similarly, we have to open the image including height and width and use while loop that accesses each pixel in Python
This code in java: Create a class named car. A car has color, model, company, registration...
This code in java: Create a class named car. A car has color, model, company, registration number. You can stear a car. A car can move forward. A car has a gear box. A typical gear decide weather car is moving forward or backward. A person owns a car. Kindly add some other functionalities like refuel
Write a class named Palindrome.java and Write a method isPalindrome that takes an IntQueue as a...
Write a class named Palindrome.java and Write a method isPalindrome that takes an IntQueue as a parameter and that returns whether or not the numbers in the queue represent a palindrome (true if they do, false otherwise). A sequence of numbers is considered a palindrome if it is the same in reverse order. For example, suppose a Queue called q stores this sequence of values: front [3, 8, 17, 9, 17, 8, 3] back Then the following call: isPalindrome(q) should...
Write a java program that has a class named Octagon that extends the class Circ and...
Write a java program that has a class named Octagon that extends the class Circ and implements Comparable (compare the object's area) and Cloneable interfaces. Assume that all the 8 sides of the octagon are of equal size. Your class Octagon, therefore, must represent an octagon inscribed into a circle of a given radius (inherited from Circle) and not introduce any new class variables. Provide constructors for clas Octagon with no parameters and with 1 parameter radius. Create a method...
PointList Class Write a class named PointList that keeps a list of Point objects in an...
PointList Class Write a class named PointList that keeps a list of Point objects in an ArrayList. The PointList class should accept any object that is an instance of the Point class,, or a subclass of Point. Demonstrate the class in an application. This is My point class…. public class Point<T> {    private T xCoordinate; private T yCoordinate;    public Point(T x, T y)    {    xCoordinate = x;    yCoordinate = y;    } public void setX(T ){        xCoordinate = x;    }    public...
Propose a general rule relating the color of an object to the color(s) of the light...
Propose a general rule relating the color of an object to the color(s) of the light that it absorbed.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT