FAQ!

Frequently Asked Questions
What is HTML?

HTML stands for Hyper Text Markup Language. It is the standard language for creating web pages and web applications. It describes the structure of a web page.


What is CSS?

CSS stands for Cascading Style Sheets. It is a stylesheet language used to describe the presentation of a document written in HTML or XML


What is the main difference between HTML and CSS?

HTML provides the structure and content, laying out the frame work for a webpage. CSS is responsible for styling and layout, bringing your HTML to life with colors, fonts, and layouts.


Why do we put CSS in a separate file?

We put CSS in a separate file to keep the design and content separate, making the code easier to read and maintain. It also allows the same styles to be reused across multiple pages and helps websites load faster because browsers can cache the CSS file.


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

In HTML,

to

tags represent headings and are used to describe the contents below them. The paragraph or the

tag in HTML helps users define a paragraph.


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

The alt attribute provides alternative information for an image if a user for some reason cannot view it


How do I link to another page?

You link to another page using the a tag with the href attribute. For example: a href="about.html" Go to About Page a creates a clickable link to another page.


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

: A Class name can be used by multiple HTML elements, while an ID name must only be used by one HTML element within the page.


What is the difference between 'margin' and 'padding'

The main difference between padding and margin is that padding controls how much breathing room exists within a box, while margin controls how much breathing room or whitespace exists outside of a box.


When should I use an
    instead of a

    The ol element is used when the list is ordered and the ul element is used when the list is unordered.




    BACK HOME