Question

In: Computer Science

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

Solutions

Expert Solution

Answer:

<!DOCTYPE html>
<html>
<head>
<style>
#heading {
background-color: blue;
font-family:georgia;
}
</style>
</head>
<body>

<h1 id='heading'>Welcome to My Homepage</h1>

</body>
</html>

Output:

Let me know in case if you have any doubts. Thanks and all the best.


Related Solutions

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 theelement in the document
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...
Write a program to draw a Pentagon with blue color inside a window. Using C ++...
Write a program to draw a Pentagon with blue color inside a window. Using C ++ with Output.
Write an application with three buttons labeled “Red”, “Green”, and “Blue” that changes the background color...
Write an application with three buttons labeled “Red”, “Green”, and “Blue” that changes the background color of a panel in the center of the frame to red, green, or blue. Add icons to the buttons of Exercise E19.1. Use a JButton constructor with an Icon argument and supply an ImageIcon. this is the code that I already wrote that I need to do the above to. import java.awt.BorderLayout; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame;...
Create a new Java program named AllAboutMe (For JAVA we use blue J) Write code to...
Create a new Java program named AllAboutMe (For JAVA we use blue J) Write code to have the program print your name, favorite color, and three hobbies to a new text file called “AllAboutMe” using PrintStream. Submit code.
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.)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT