Question

In: Computer Science

For h1 headings that are direct children of the nav element: Set the font-size to 1.2em,...

For h1 headings that are direct children of the nav element:

  1. Set the font-size to 1.2em,
  2. Set the font-color to white,
  3. Set the background-color to black, and
  4. Set the text-align property to center.

Solutions

Expert Solution

Please upvote if you are able to understand this and if there is any query do mention it in the comment section.

CODE:

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

    <style>

        nav h1 {/* styling the h1(s) of nav */

            font-size: 1.2em;

            color: white;

            background-color: black;

            text-align: center;

        }

    </style>

</head>

<body>

    <!-- creating the nav element -->

    <nav>

        <!-- creating the h1 which are direct children of nav -->

        <h1>First heading</h1>

        <h1>Second heading</h1>

        <h1>Third heading</h1>

        <h1>Fourth heading</h1>

    </nav>

</body>

</html>

OUTPUT:

If this was supposed to be done in any other way then please mention it in the comment section otherwise please upvote.


Related Solutions

For the following style rules, what is the font size of the h1 heading in pixels?...
For the following style rules, what is the font size of the h1 heading in pixels? body {font-size: 16px;} body > article {font-size: 0.75em;} body > article > h1 {font-size: 1.5em;} 16px; 12px; 18px; 18.25px;
ESSAY: This essay has to be 2 pages and writen in font size 12. and another...
ESSAY: This essay has to be 2 pages and writen in font size 12. and another page is a brief outline and sources citation Topic; how integrity and individual decisions can affect other people, this topic can be refered from Sport area, Academic, Work experiences, Management
Font size 11 Answer must be 8 to 10 pages, in your own words and do...
Font size 11 Answer must be 8 to 10 pages, in your own words and do provide references. Deliver the answer before 30th Octorber 2018 Please email me the answer to : [email protected] --------------------------------------------------------------------------------------------------------- Using relevant theories and models critically evaluate and analyse the leadership of a leader working in an (business, government or not-for-profit) organisation. If you were in the position of the leader, what could you do to be a better leader and make a stronger impact on...
Consider the following hypothesis test. H0:  = 20 H1:  ≠ 20 The sample size...
Consider the following hypothesis test. H0:  = 20 H1:  ≠ 20 The sample size is 200 and the standard deviation of the population is 10. Use a  = 0.05. What is the probability of making the Type II error if the real value of the population is: a. μ = 18.0 b. μ = 22.5 c. μ = 21.0
1. A file of size 500 MB is to be transferred from host H1 to host...
1. A file of size 500 MB is to be transferred from host H1 to host H2 through routers R1, R2 and R3. See Figure 1 below. h1=2mbs=>R1==8mbs=>R2==10mbs==>R3=1mbs==>h2 (a) If the file is transmitted is one entity, without dividing it into smaller chunks, estimate how long it would take for the file to arrive at the receiver. [4 marks] (b) If the file is first divided into smaller chunks, and each chunk is transmitted and then combined, estimate how long...
350 words, no less but no more than 360. Typed, times new Roman, font size 12....
350 words, no less but no more than 360. Typed, times new Roman, font size 12. Topic: Many people have an irrational fear of insects (they feel they are disgusting or harmful, when most of them are not). What would you say to convince them to think differently? Rubric: General statement of problem Title, starts strong, engages the reader       ______________I_______I_______I______I______ Introduction of the topic                             ______________I_______I_______I______I______   Organization Introduction, body, conclusion                      _____________I_______I_______I______I______ Orderly procession of ideas – linkages         _____________I_______I_______I______I______...
make a detailed report on interest rates and foreign direct investment with following headings 1-Intro about...
make a detailed report on interest rates and foreign direct investment with following headings 1-Intro about interest rate 2-intro about foreign direct investment 3- impact of interest rates kn foreign direct investment 4-does foreign direct investment generate economic growth 5- impact of interest rate in Pakistan (report should bw of 3 4 pages ) 6 - benefits of investing abroad 7 foreign direct investments impact on globalization 8 - world investment report chart report should be of minimum 4 pages...
Summary Paragraph Assignment Requirements of the Assignment: Use Times New Roman font size 12, double-spaced for...
Summary Paragraph Assignment Requirements of the Assignment: Use Times New Roman font size 12, double-spaced for this assignment Write a one-paragraph summary of the article, “Why it Costs so Much to be Poor in America”, published in The Washington Post on January 25, 2018. The paragraph should contain 10-15 sentences and include the following: A summary sentence The author’s full name The full title in quotations and capitalized correctly The author’s main point(s) and supporting points When it was written...
Essay about contemporary topic on economy. 4 pages Doble space Times New Roman font - size...
Essay about contemporary topic on economy. 4 pages Doble space Times New Roman font - size 12 APA Style
1.) How many relations are there from a set of size n to a set of...
1.) How many relations are there from a set of size n to a set of size m? 2.) Determine the number of entries in the following sequences: a.) {13, 19, 25, . . . , 601} b. {7, 11, 19, 35, 67, . . . , 131075}
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT