What is HTML?
HTML stands for HyperText Markup Language. It is the standard markup language for creating web pages.
What is CSS?
CSS stands for Cascading Style Sheets. It describes how HTML elements are displayed on screen.
What is the main difference between HTML and CSS?
HTML structures the content of a webpage, while CSS controls its visual appearance and layout.
Why do we put CSS in a separate file?
Separating CSS helps keep code organized and reusable. It allows multiple pages to share the same styling.
What is the difference between an H1 and a P tag?
The <h1> tag defines a main heading, while the <p> tag defines a paragraph of text.
What does the 'alt' attribute do in an <img> tag?
The 'alt' attribute provides alternative text for an image if it cannot be displayed.
How do I link to another page?
You can link to another page using the <a href="page.html">Link Text</a> tag.
What is the difference between a 'class' and an 'ID' in CSS?
A class can be reused across multiple elements, while an ID is unique to one element.
What is the difference between 'margin' and 'padding' in CSS?
Margin controls space outside an element; padding controls space inside it.
When should I use an <ol> instead of a <ul>?
Answer goes here.