HTML vs CSS vs JavaScript step by step

HTML, CSS, and JavaScript are foundational technologies for web development, each serving a unique purpose in creating and styling web pages.

MasonLee8h·19 Karteikarten·12 Fragen
high schoolcomputer_scienceweb
0
Gewusst
1 / 19
0
Lerne noch
Vorderseite

What is HTML?

Tippen zum Umdrehen
Rückseite

HTML stands for HyperText Markup Language. It's used to structure content on the web.

Tippen zum Umdrehen
Gewusst
Lerne noch

Quiz(12 Fragen)

Frage 1 von 12

1. What is the main purpose of HTML?

Begriffe in diesem Lernset(19)

HTML Basics(5)

What is HTML?

HTML stands for HyperText Markup Language. It's used to structure content on the web.

What does a tag do in HTML?

Tags are used to define elements in an HTML document, enclosed in angle brackets like <tag>.

True or false: HTML can style web pages.

False, because HTML primarily structures content, not styles it.

Difference between <div> and <span>

<div> is a block-level element, while <span> is an inline element used for styling.

Fill the blank: HTML documents are often saved with the extension _____.

.html or .htm

CSS Basics(5)

What is CSS?

CSS stands for Cascading Style Sheets. It's used to style HTML elements and control layout.

How do you apply CSS to HTML?

CSS can be applied via inline styles, internal style sheets, or external style sheets.

True or false: CSS can change the content of a webpage.

False, because CSS is used for styling and layout, not content.

Difference between class and ID in CSS

A class can be used multiple times, while an ID is unique to a single element.

Fill the blank: In CSS, colors can be defined using _____ values.

Hex, RGB, or named colors.

JavaScript Basics(5)

What is JavaScript?

JavaScript is a programming language that allows you to create interactive web pages.

How does JavaScript enhance HTML?

JavaScript enables dynamic content updates, interactive forms, and animations on web pages.

True or false: JavaScript only runs on the server.

False, because JavaScript primarily runs in the client's web browser.

Difference between alert() and console.log()

alert() displays a popup message, while console.log() outputs messages to the browser's console.

Fill the blank: JavaScript uses _____ to define functions.

function keyword.

Comparative Concepts(4)

Difference between HTML and CSS

HTML structures the content, while CSS styles the visual presentation of that content.

True or false: CSS can manipulate data.

False, because CSS only styles and cannot manipulate data like JavaScript.

What role does JavaScript play in web development?

JavaScript adds interactivity and functionality, making web pages dynamic and responsive.

Fill the blank: The main file for a JavaScript program is usually named _____.

.js

Fragen in diesem Lernset(12)

1. What is the main purpose of HTML?

A.Structure web content
B.Style web content
C.Add interactivity
D.Manage data

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

A.color
B.bgcolor
C.background-color
D.background

3. What will the alert function display?

A.An error message
B.A console log
C.A pop-up message
D.A file download

4. Which technology is responsible for the interactivity of a webpage?

A.HTML
B.CSS
C.JavaScript
D.XML

5. Which tag is used to create a hyperlink?

A.<link>
B.<a>
C.<hyper>
D.<url>

6. Which selector is used for an ID in CSS?

A..classname
B.#idname
C.tagname
D.*

7. Which keyword declares a variable in JavaScript?

A.var
B.let
C.const
D.All of the above

8. Which of the following is NOT a styling language?

A.CSS
B.Sass
C.LESS
D.HTML

9. Which HTML tag is a block-level element?

A.<p>
B.<span>
C.<strong>
D.<em>

10. What does the z-index property control?

A.Height of elements
B.Vertical positioning
C.Layering order
D.Color intensity

11. Which of the following is an array method?

A.push()
B.add()
C.append()
D.insert()

12. Which technology cannot manipulate HTML?

A.HTML
B.CSS
C.JavaScript
D.Both HTML and CSS

Ähnliche Lernsets

Eigenes Lernset erstellen

Lade ein PDF hoch, füge Notizen ein oder beschreibe ein Thema – KI erstellt Karteikarten, Quizze und mehr in Sekunden.