HTML, CSS, and Design

HTML, CSS, and Design

6th - 12th Grade

59 Qs

quiz-placeholder

Similar activities

Year 8 End of Year Assessment

Year 8 End of Year Assessment

7th - 9th Grade

60 Qs

Remedial XTKJ Pemrograman Dasar PAS GJL

Remedial XTKJ Pemrograman Dasar PAS GJL

10th Grade

60 Qs

PBD Sains Komputer T4 - 1.2 Algoritma

PBD Sains Komputer T4 - 1.2 Algoritma

10th - 12th Grade

60 Qs

Ujian Pendalaman Materi

Ujian Pendalaman Materi

12th Grade

60 Qs

Python

Python

6th - 8th Grade

55 Qs

20001 - 2001 Final Test ช.1 (2566)

20001 - 2001 Final Test ช.1 (2566)

10th Grade

60 Qs

Tin học 7. T51: Ôn tập

Tin học 7. T51: Ôn tập

7th Grade

54 Qs

Orientasi Dasar Perangkat Lunak dan Gim

Orientasi Dasar Perangkat Lunak dan Gim

10th Grade

60 Qs

HTML, CSS, and Design

HTML, CSS, and Design

Assessment

Quiz

Computers

6th - 12th Grade

Medium

Created by

Carlos Lopez

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

59 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the proper way to apply the CSS code inside style.css to the home.html file?

Inside home.html:


<head>

<link rel="stylesheet" type="text/css" href="style.css">

</head>

Inside home.html:


<head>

<style href="style.css"></style>

</head>

Inside style.css:


<html href="home.html">

Inside style.css:


applyTo {

href: home.html;

}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the proper way to link to the about.html page from the index.html page?

<a href="about">About This Site</a>

<a href="/about.html">About This Site</a>

<a href="about.html">About This Site</a>

<a href="/about">About This Site</a>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the div tag?

To define a section of an HTML page

To group a block of elements together to format them with CSS

To efficiently apply the same style to several different elements

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly uses div to style multiple elements the same way?

<div class="intro">

<h2>Welcome</h2>

<p>Hi, welcome to my page.</p>

</div>

<div>

<h2 class="intro">Welcome</h2>

<p class="intro">Hi, welcome to my page.</p>

</div>

<div>

.intro{

font-size: 16px;

font-style: italic;

}

<h2>Welcome</h2>

<p>Hi, welcome to my page.</p>

</div>

<h2 div class="intro">Welcome</h2>

<p div class="intro">Hi, welcome to my page.</p>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following selects all p tags with the class alert and makes them red?

p.alert {

color: red;

}

p {

.alert {

color:red;

}

}

.alert p{

color: red;

}

p alert{

color: red;

}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will turn the h1 tag blue as the mouse hovers over it?

hover > h1 {

color: blue;

}

h1:hover {

color: blue;

}

h1; hover {

color: blue;

}

h1, hover {

color: blue;

}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Karen wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
<li>
<h1>
<hr>
<br>

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?