Question

In: Computer Science

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 the


element in the document.

Solutions

Expert Solution

/* style rule for id=subheading */

#subheading{

border-bottom: solid 1px;

font-family: Arial, Helvetica, sans-serif;

}

Heading class can be applied to h2 like

Demonstration :

Here a new web page with name "2.html" is created, which contains following code.

2.html :

This is subheading

This sets heading class

======================================================

Output : Open web page 2.html in the browser and will get the screen as shown below

Screen 1 :2.html


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 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 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...
Question 1 - Create a class named Student that has fields for an ID number, number...
Question 1 - Create a class named Student that has fields for an ID number, number of credit hours earned, and number of points earned. (For example, many schools compute grade point averages based on a scale of 4, so a three-credit-hour class in which a student earns an A is worth 12 points.) Include methods to assign values to all fields. A Student also has a field for grade point average. Include a method to compute the grade point...
Consider the Titanic data stored in a structure variable named T. Passenger ID Survived 1=Yes, 2=No...
Consider the Titanic data stored in a structure variable named T. Passenger ID Survived 1=Yes, 2=No Gender 1=Male, 2=Female Age Fare ($) T = 121 2 1 22 7.25 243 1 2 38 71.28 432 1 2 26 7.93 564 1 2 35 53.1 856 2 1 35 8.05 As a table of 6 students, complete the following – you may want to have a couple of students checking the syntax and output on MATLAB. 1. Draw the table (Titanic...
Discuss how the middle ages provided a solid foundation for modern liberty? topics 1)Rule of law...
Discuss how the middle ages provided a solid foundation for modern liberty? topics 1)Rule of law 2)Education 3)Development of commerce
1.Write on compare the rule of nine for adult and children. 2. write two paragraph of...
1.Write on compare the rule of nine for adult and children. 2. write two paragraph of the differences and comparison of rule of nine in both adult and children.
Write a small C program connect.c that: 1. Initializes an array id of N elements with...
Write a small C program connect.c that: 1. Initializes an array id of N elements with the value of the index of the array. 2. Reads from the keyboard or the command line a set of two integer numbers (p and q) until it encounters EOF or CTL - D 3. Given the two numbers, your program should connect them by going through the array and changing all the entries with the same name as p to have the same...
Write a small C program connect.c that: 1. Initializes an array id of N elements with...
Write a small C program connect.c that: 1. Initializes an array id of N elements with the value of the index of the array. 2. Reads from the keyboard or the command line a set of two integer numbers (p and q) until it encounters EOF or CTL - D 3. Given the two numbers, your program should connect them by going through the array and changing all the entries with the same name as p to have the same...
ACTIVITY #1: Defining Strings √ Write an assembly program that display your name, your id, and...
ACTIVITY #1: Defining Strings √ Write an assembly program that display your name, your id, and your college name on the screen. √ Remember: the format of the assembly program should be like this. TITLE your title (FileName.asm) .MODEL FLAT .386 .STACK 64 .DATA str1 DB "My name: Essam Alnatsheh",13,10,'$' .CODE main PROC mov ax,@data mov ds,ax mov ah,09h mov dx, offset str1 int 21h ​mov ah,4Ch​​ ; terminate process ​mov al,0​​ ; return code ​int 21h main ENDP END...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT