FAQ!

Frequently asked Questions
What is HTML?

HTML stands for HyperText Markup Language. It is the standar markup language for creating web pages and web apllications. It describes the structure of a web page


What is CSS?

HCSS (Cascading Style Sheets) is a language used to style and design web pages. It controls how HTML elements look — like colors, fonts, spacing, and layout.


What is the main difference between HTML and CSS?

HTML is used to build the structure and content of a webpage (like text, images, and links), while CSS is used to make that content look nice and organized.


Why do we put CSS in a separate file?

We put CSS in a separate file to keep the code clean and easy to manage. It also lets us use the same design on multiple pages without repeating the style code.


What is the difference between an H1 and P tag

The H1 tag is used for the main heading or title of a page, while the P tag is used for regular paragraphs or blocks of text.


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

The alt attribute provides a text description of the image. It shows up if the image does not load and helps visually impaired users understand what the image is about.


How do I link to another page?

Step 1: Choose the page you want to link to. Step 2: Add a link element in your HTML. Step 3: Write the pages name or text people will click on. Step 4: Test the link to make sure it goes to the right page.


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

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


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

Margin is the space outside an element (between it and other elements). Padding is the space inside an element (between the content and its border).


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

Use an <ol> (ordered list) when the order or numbering matters (like steps in a recipe). Use a <ul> (unordered list) when the order does not matter (like a list of fruits).






Back Home