FAQ

Frequently Asked Questions
What is HTML?

HTML is the language used to make websites and structure the content on a page.

What is CSS?

CSS is used to style websites and make them look nice with colors, fonts, and layout.

What is the main difference between HTML and CSS?

HTML creates the content, while CSS makes it look good.

Why do we put CSS in a separate file?

It helps keep the website organized and makes styling easier to manage.

What is the difference between an H1 and a P tag?

H1 is a heading, usually big and important. P is a paragraph for regular text.

What does the 'alt' attribute do in an <img> tag?

It shows a text description if the image doesn’t load, and helps with accessibility.

How do I link to another page?

You use the <a href="page.html"> link </a> tag to go to another page.

What is the difference between a 'class' and an 'ID' in CSS?

A class can be used on many elements, an ID should only be used once per page.

What is the difference between 'margin' and 'padding' in CSS?

Margin is space outside an element; padding is space inside it.

When should I use an <ol> instead of a <ul>?

Use <ol> when order matters (like steps), <ul> for a simple list.

BACK HOME