1.3.3a - html, css, javascript (y12) Flashcards
What is HTML?
A markup language used to structure web content.
What does HTML stand for?
HyperText Markup Language.
What is CSS?
A language used to style HTML elements.
What does CSS stand for?
Cascading Style Sheets.
What is JavaScript?
A scripting language used to add interactivity to web pages.
What is a tag in HTML?
A keyword used to define elements (e.g. <p>, <div>).
What is the <head> tag?
Contains metadata like title, styles, and scripts.
What is the <body> tag?
Contains content shown on the web page.
What is the role of <h1> to <h6>?
Used for headings – h1 is the largest.
What is the <a> tag for?</a>
Creates a hyperlink.
How do you insert an image in HTML?
Using the <img></img> tag with a src attribute.
What is inline CSS?
Style rules written inside an HTML tag.
What is internal CSS?
Style rules written in a <style> tag in the head.</style>
What is external CSS?
Styles written in a separate .css file and linked with <link></link>.
What is the purpose of CSS classes?
To apply styles to multiple elements using a shared name.
How do you select a class in CSS?
With a dot (e.g. .title).
What is JavaScript used for?
Changing content, responding to events, creating interactive forms.
Where can JavaScript be placed?
In the HTML file (in
) or in a separate .js file.
What is the DOM?
Document Object Model – a structure that JS uses to access and change the page.
What is an event in JavaScript?
An action like a click or keypress that JS can respond to.
How do you show an alert in JavaScript?
Using alert(“message”)
What does document.getElementById do?
Finds an element by its ID.
What is a variable in JavaScript?
A container for storing data (e.g. let x = 5).