What is a HTML?
HTML stands for HyperText Markup Language. It is the standard markup language for creating web pages and web applications. It describes the structure of a web page.
What is a CSS?
Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS describes how elements should be rendered on screen, on paper, in speech, or on other media.
What is the main difference between HTML and CSS?
HTML (HyperTextMarkup Language) is a markup language used to structure the content of a web page, while CSS (Cascading Style Sheets) is used to style and visually lay out the content on a web page. HTML provides the structure and content of a web page, while CSS provides the visual design.
Why do we put CSS in a separate file?
If your web pages are really different from each other, using separate CSS files for each might make it easier to manage. This way, you can customize as much as you need without messing up the styles on other page
What is the difference between an <H1> and a <p> tag?
<h1> is for titles and headings, indicating structure and importance. <p> tag is for body text, representing blocks of content within that structure.
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 (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
How do I link to another page?
To link to another page, you can use the a HTML tag with the <href> attribute for external or same-site links
What is the difference between a 'class' and an 'ID' in CSS?
Classes are used to group elements having similar functionalities. IDs are used to uniquely identify a single element on the web page. Multiple elements can have the same class. No more than one element can have the same Id.
What is the difference between 'margin' and 'padding' in CSS?
Padding is the space inside an element's border, between the content and the border itself, while margin is the space outside the border, which separates the element from other elements. Padding creates inner space to give content "breathing room," whereas margin creates space between different elements or between an element and the edge of the page
When should I use an <ol> instead of a <ul>?
Use an <ol> (ordered list) when the sequence or order of the list items is important to the meaning of the list. Use a <ul> (unordered list) when the order does not matter and the items are a simple collection of related information.