CSS Basics

CSS Basics

University

10 Qs

quiz-placeholder

Similar activities

Website Design

Website Design

KG - University

10 Qs

CSS - 19 Januari 2021

CSS - 19 Januari 2021

12th Grade - University

15 Qs

Ucertify Introduction to Cascade Style Sheet Technology

Ucertify Introduction to Cascade Style Sheet Technology

7th Grade - University

10 Qs

Ciw Introduction to Cascade Style Sheets Technology

Ciw Introduction to Cascade Style Sheets Technology

7th Grade - University

10 Qs

HTML

HTML

12th Grade - University

11 Qs

Quiz 1 HTML

Quiz 1 HTML

University

10 Qs

Web Design

Web Design

University

10 Qs

Quiz-2: HTML & CSS (AIML)/CC/1st Year

Quiz-2: HTML & CSS (AIML)/CC/1st Year

University

15 Qs

CSS Basics

CSS Basics

Assessment

Quiz

Computers

University

Medium

Created by

Udhayakumar Shanmugam

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

CSS takes care of

Data

Deign

Behaviour

Structure

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these is the new feature added in CSS version 3

Box Model

Web Animation

Pseudo classes

Visual Effects

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is the correct code to link the external style sheet named mystyle.css?

<!DOCTYPE html>
<html>
<head>
<link rel=stylesheet href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
<links rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
<link rel="css" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The .......................... selector is used to

define style rules for a

single or unique element

id

class

universal

identify

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>Example of CSS class selector</title>

<style>

p.blue {

color: #0000ff;

}

</style>

</head>

<body>

<h1 class="blue">This is a heading</h1>

<p class="blue">This is a paragraph.</p>

<p>This is another paragraph.</p>

</body>

</html>

Name the selector used in this HTML Code

Grouping

class

universal

Element

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

The correct code for the above image is...............

<!DOCTYPE html>

<html>

<head>

<style>

body {

background-image: url("img_tree.png");

background-repeat: no-repeat;

}

</style>

</head>

<body>

<h1>Hello World!</h1>

<p>Amrita background image example.</p>

</body>

</html>

<!DOCTYPE html>

<html>

<head>

<style>

body {

background-image: url("img_tree.png");
  background-repeat: repeat-x;

}

</style>

</head>

<body>

<h1>Hello World!</h1>

<p>Amrita background image example.</p>

</body>

</html>

<!DOCTYPE html>

<html>

<head>

<style>

body {

background-image: url("img_tree.png");

background: no-repeat;

}

</style>

</head>

<body>

<h1>Hello World!</h1>

<p>Amrita background image example.</p>

</body>

</html>

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if you set a font-size of 20px on the body element, then 1em = ?

2em

20px

40px

1em

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers