Question

Which of the following style rules will center the text of all h1 through h6 headings...

Which of the following style rules will center the text of all h1 through h6 headings with the text displayed at normal weight?

  1. h1 - h6 {

       text-align: center;

       weight: normal;

    }

  2. h1, h2, h3, h4, h5, h6 {

       align: center;

       weight: normal;

    }

  3. h1, h2, h3, h4, h5, h6 {

       text-align: center;

       font-weight: normal;

    }

  4. h1 - h6 {

       text-align: center;

       font-weight: normal;

    }

Homework Answers

Answer #1

First of all let's see which is the right CSS selector

h1-h6

OR

h1, h2, h3, h4, h5, h6

h1-h6 is not a valid css selector, that means we can't select any HTML element using h1-h6. So, option one and option four are not valid.

Now, with the option below

h1, h2, h3, h4, h5, h6 {

   align: center;

   weight: normal;

}

It looks fine but there is actually no CSS property called weight:normal;

The correct way of setting font weight is font-weight:normal;

Therefore, the option that will center the text of all h1 through h6 headings with the text displayed at normal weight is below i.e the third one.

h1, h2, h3, h4, h5, h6 {

   align: center;

   font-weight: normal;

}

HAPPY LEARNING

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Open the debug3-4.css file. The body element should have a width that is 90% of the...
Open the debug3-4.css file. The body element should have a width that is 90% of the width of the browser window ranging from a minimum of 600 pixels up to a maximum of 1024 pixels. Fix the syntax errors in the body style rule that defines the width of the web page. The style rule for the body element sets up a grid layout for the page. However, there are several errors in defining the grid areas, grid columns, and...
Let's say you have this in your code. Which of the following are true? (select only...
Let's say you have this in your code. Which of the following are true? (select only correct answers) Note: See FONT-SIZE info (Links to an external site.) re: font EM values h1, h2 { margin-top: 33px; font-family: Lobster; text-align: center; color: #333333; font-size: 1.3em; letter-spacing: .3em } Group of answer choices a. MARGIN-TOP: 33px; creates the same result as MARGIN: 33px 0 0 0; b. This defines a CSS "descendant selector" rule c. #333333 is a hex COLOR value that...
TASK 2: Open numberic-variable_problem.js file in a text editor (e.g., NotePad++). What is the syntax error...
TASK 2: Open numberic-variable_problem.js file in a text editor (e.g., NotePad++). What is the syntax error in the JavaScript file? Find error message in console in a browser’s developer tool. Fix that error and reload the web page in browser. What is the change in the content displayed in the web page after fix the syntax error in the JavaScript code? Replace the line#18 statement (el.textContent = '$' + total;) in the JavaScript code with    el.textContent = '$' + total.toFixed(3);...
Please provide HTML code for the following: • Change the color of all <p> elements to...
Please provide HTML code for the following: • Change the color of all <p> elements to “blue" • Change the 3 border properties, so that they only show the border on the top side • Use the padding property to set the top and bottom paddings for <p> to "25px", and left and right paddings to "50px" • Style text in <h1> to uppercase letters, and text in <p> to capitalized letters • Remove the bullets/markers from the list items...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial,...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial, sans-serif; font-size: 100%; } /* outer container */    #wrapper { width: 960px; margin: 50px auto; padding: 0px; background-color: rgb(255, 255, 255); /* white */ border: 1px solid #000; /* black */ }    header h1 { text-align: center; }    nav { text-align: center; background: rgb(175, 196, 206); }    address figure { text-align: center; } </style> </head> <body> <div id="wrapper"> <!-- outer...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today I built my fourth website using HTML5 and CSS3. This time I wanted to try using CSS float layout options on a website dedicated to my favorite topic: robotics. I wanted my website to look like what is shown in Figure 1 (see below). However, after giving it my best effort, things once again didn’t turn out the way I wanted (see the code...
Which of the following has an asymmetric center? Check all that apply. CHBr2 CHFBrCl CH3CHCl2 BeHCl...
Which of the following has an asymmetric center? Check all that apply. CHBr2 CHFBrCl CH3CHCl2 BeHCl BHFCl
Tableau can connect to all these file types except which of the following? Text PDF files...
Tableau can connect to all these file types except which of the following? Text PDF files Excel Microsoft Access Microsoft Power BI Which of the following is least likely to be a Dimension field in Tableau? Total cost Country State Segment None of the choices are correct. Which of the following is least likely to be a Measure field in Tableau? Sales revenue Segment Total cost Quantity sold None of the choices are correct. Which of the following best describes...
1. Which of the following is true about binary fission? Group of answer choices A the...
1. Which of the following is true about binary fission? Group of answer choices A the original two chromosomes in a bacterial cell each replicate and are placed into two new cells B the chromosome is copied, then attaches to the cell membrane by spindle fibers C there is no nuclear membrane to break down and reform D lysis of the existing cell wall of bacteria occurs during the process 2. DNA:   Group of answer choices A replication is described...
Question text Which of the following best describes constrained optimization problem? Select one: a. A constrained...
Question text Which of the following best describes constrained optimization problem? Select one: a. A constrained optimization problem is an optimization problem that maintains a priority queue of variables, where the weight of a variable is the number of conflicts in which it participates. b. A constrained optimization problem is an optimization problem that also has hard constraints specifying which variable assignments are possible. The aim is to find an optimal assignment that satisfies the hard constraints. c. A constrained...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT