Search Header Logo

HTML, CSS, and JavaScript Basics

Authored by esraa emad

Computers

8th Grade

Used 3+ times

HTML, CSS, and JavaScript Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the

tag in HTML?

The

tag is for embedding images.

The

tag is used to define a table structure.

The

tag is used to group and style HTML elements.

The

tag is used to create hyperlinks.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you link an external CSS file in HTML?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a variable in JavaScript?

var x; // using var let y; // using let const z = 10; // using const

const z; // missing value

let = y;

variable x = 5;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access an HTML element by its ID in JavaScript?

document.getElementById('yourElementId');

document.getElementByIdById('yourElementId');

getElementById('yourElementId');

document.querySelector('#yourElementId');

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What attribute is used to execute JavaScript when a button is clicked?

onfocus

onclick

onchange

onhover

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does CSS stand for?

Computer Style Sheets

Cascading Style System

Creative Style Sheets

Cascading Style Sheets

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to change the background color in CSS?

background-color

color-background

background

bg-color

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?