HTML, CSS, and JavaScript Basics

HTML, CSS, and JavaScript Basics

8th Grade

8 Qs

quiz-placeholder

Similar activities

Introduction to JavaScript Basics

Introduction to JavaScript Basics

HTML, CSS and Javascript

HTML, CSS and Javascript

HTML and CSS Basics Quiz

HTML and CSS Basics Quiz

Year 7 - HTML Revision

Year 7 - HTML Revision

html and CSS quiz

html and CSS quiz

CSS Quiz

CSS Quiz

HTML, CSS, and JavaScript Basics

HTML, CSS, and JavaScript Basics

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

esraa emad

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: var x = 5; alert(x);?

10

undefined

5.0

5

Discover more resources for Computers