Help shape GoConqr. What should we add next?

Quiz

N5 Computing Science (WDD) - HTML + CSS 2

Ian Simpson 5 questions 5.0 (1 rating)

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (5)

  1. 1When using internal CSS, all style information should be inside the <HEAD> tags.
    1. ATrue
    2. BFalse
  2. 2Select all lines of code below which contain CSS, not HTML
    1. Abackground-color: lightblue;
    2. B<a href="index.html">Home page</a>
    3. Ch1 {
    4. D<h1>
  3. 3Complete the CSS code below to make the any HTML <H1> tags appear in red and in the centred on the screen:

    <!DOCTYPE html>
    <html>
    <head>
    <title>repl.it</title>
    <style>
    h1 {
    [blank_start]color: red;[blank_end]
    text-align: [blank_start]center[blank_end];
    }
    </style>
    </head>
    <body>
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <p>A paragraph of text</p>
    </body>
    </html>
    Image for question 3
    1. Acolor: red;
    2. Bcolor: blue;
    3. Ccolor: green;
    4. Dcenter
    5. Eleft
    6. Fright
  4. 4Complete the CSS code below to make the HTML <P> tags appear in a different font from the <H1> and <H2> tags:

    <!DOCTYPE html>
    <html>
    <head>
    <title>repl.it</title>
    <style>
    [blank_start]h1[blank_end],h2 {
    font-family: Verdana;
    }
    [blank_start]p[blank_end] {
    font-family: [blank_start]Times New Roman[blank_end];
    }
    </style>
    </head>
    <body>
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <p>A paragraph of text</p>
    </body>
    </html>
    1. Ah1
    2. Bp
    3. CTimes New Roman
    4. DVerdana
  5. 5Complete the CSS code below to make the webpage look like the image shown:

    <!DOCTYPE html>
    <html>
    <head>
    <title>repl.it</title>
    <style>
    body {
    background-color: [blank_start]blue[blank_end];
    }
    h1,h2 {
    font-family: Verdana;
    background-color: [blank_start]yellow[blank_end];
    [blank_start]color: blue;[blank_end]
    padding: 14px 25px;
    text-align: center;
    }
    p {
    font-family: Times New Roman;
    [blank_start]color: yellow;[blank_end]
    }
    </style>
    </head>
    <body>
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <p>A paragraph of text</p>
    </body>
    </html>
    Image for question 5
    1. Ablue
    2. Byellow
    3. Ccolor: blue;
    4. Dcolor: yellow;

Information

Description
Introduction to CSS
Language
English
Views
284
Tags
htmlcssweb designn5national 5computing sciencecomputinga level
Rating
5.0 out of 5 · 1 rating
Rate this quiz
Rate this quiz

Feedback

What is it about?

What should we add next?