HTML & CSS Flashcards
(7 cards)
What is HTML?
HyperText Markup Language – the standard language for creating web pages.
What is CSS?
Cascading Style Sheets – used to define the presentation and layout of web pages.
What is the role of HTML tags?
They structure web content (e.g., <h1>, <p>, <a>, <img></img>).</a>
What is the difference between HTML and CSS?
HTML: Defines structure/content
CSS: Defines style/layout
What is a CSS class?
A reusable style defined with a . prefix (e.g., .main-header), applicable to multiple elements.
What is a CSS ID?
A unique identifier used once per page, defined with a # prefix (e.g., #login-button).
What is form validation?
A process to ensure that data entered into a web form meets specific requirements (e.g., length, format, presence).