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.
Quiz(12 preguntas)
1. What is the main purpose of HTML?
Términos en este set(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
Preguntas en este set(12)
1. What is the main purpose of HTML?
2. Which property is used to change the background color in CSS?
3. What will the alert function display?
4. Which technology is responsible for the interactivity of a webpage?
5. Which tag is used to create a hyperlink?
6. Which selector is used for an ID in CSS?
7. Which keyword declares a variable in JavaScript?
8. Which of the following is NOT a styling language?
9. Which HTML tag is a block-level element?
10. What does the z-index property control?
11. Which of the following is an array method?
12. Which technology cannot manipulate HTML?
Sets relacionados
Test: Was eine URL ist
Wiederholung: Browser lädt eine Seite
Wiederholung: HTML CSS JavaScript Rollen
How a browser loads a page
What a URL is
Wat een URL is aantekeningen
HTML CSS en JavaScript stap voor stap
Formularz HTML krok po kroku
Crea tu propio set de estudio
Sube un PDF, pega tus notas o describe un tema – la IA genera tarjetas, quizzes y más en segundos.

