1.3.3a - html, css, javascript (y12) Flashcards

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is HTML?

A

A markup language used to structure web content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does HTML stand for?

A

HyperText Markup Language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is CSS?

A

A language used to style HTML elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does CSS stand for?

A

Cascading Style Sheets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is JavaScript?

A

A scripting language used to add interactivity to web pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a tag in HTML?

A

A keyword used to define elements (e.g. <p>, <div>).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the <head> tag?

A

Contains metadata like title, styles, and scripts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the <body> tag?

A

Contains content shown on the web page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the role of <h1> to <h6>?

A

Used for headings – h1 is the largest.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the <a> tag for?</a>

A

Creates a hyperlink.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you insert an image in HTML?

A

Using the <img></img> tag with a src attribute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is inline CSS?

A

Style rules written inside an HTML tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is internal CSS?

A

Style rules written in a <style> tag in the head.</style>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is external CSS?

A

Styles written in a separate .css file and linked with <link></link>.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the purpose of CSS classes?

A

To apply styles to multiple elements using a shared name.

17
Q

How do you select a class in CSS?

A

With a dot (e.g. .title).

18
Q

What is JavaScript used for?

A

Changing content, responding to events, creating interactive forms.

19
Q

Where can JavaScript be placed?

A

In the HTML file (in

) or in a separate .js file.
20
Q

What is the DOM?

A

Document Object Model – a structure that JS uses to access and change the page.

21
Q

What is an event in JavaScript?

A

An action like a click or keypress that JS can respond to.

22
Q

How do you show an alert in JavaScript?

A

Using alert(“message”)

23
Q

What does document.getElementById do?

A

Finds an element by its ID.

24
Q

What is a variable in JavaScript?

A

A container for storing data (e.g. let x = 5).

25
What is a function in JavaScript?
A reusable block of code that performs a task.
26
What is the role of