Search Header Logo

HTML and CSS Quiz

Authored by Sonam Pareek

Computers

6th Grade

Used 2+ times

HTML and CSS Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag correctly links an external CSS file?

  1. <style src="styles.css">

<link rel="stylesheet" href="styles.css">

  1. <css href="styles.css">

  1. <script href="styles.css">

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag is used to create a hyperlink?

  1. <link>

  1. <href>

  1. <url

  1. <a>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag is used to group inline elements and apply styles without introducing a line break?

  1. <div>

  1. <span>

  1. <p>

  1. <section>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where is the correct place to put the <title> element?

  1. Inside <head>

  1. Inside <body>

  1. After </html>

  1. Anywhere

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which attribute is used with <link> to define the relationship to the document?

type

rel

href

media

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct CSS comment syntax?

. <!-- comment -->

// comment

/* comment */

# comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which selector targets an element with id="main"?

.main

main

#main

*main

Access all questions and much more by creating a free account

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

Already have an account?