「 ✦What is HTML?✦ 」
HTML stands for Hyper Text Mark of Language. It is the standard markup language for creating web pages and web applications. It describes the structures of a web page.
「 ✦What is CSS?✦ 」
CSS is the laguage used to style a Web page. it stands for Cascading Style Sheets.CSS describes how HTML elements are to be displayed on screen, paper, or in other media. It saves a lot of work. It can control the layout of multiple web pages all at once aswell.
「 ✦What is the main difference between HTML and CSS?✦ 」
HTML provides the structure, while CSS defines the style and layout.
「 ✦Why do we put CSS in a separate file?✦ 」
Placing CSS in a separate file, known as external CSS, is a best practice in web development due to several key advantages. Such as Seperation of concers, Reusability,Maintainability, Improved Performance, Organization and Scalability, and Collaboration.
「 ✦What is the difference between an H1 and a P tag?✦ 」
p describes a paragraph, and h* describe headings.
「 ✦What does the 'alt' attribute do in an < img > tag?✦ 」
The required alt attribute specifies an alternate text for an image.
「 ✦ How do I link to another page?✦ 」
To link to another page, use the HTML < a > tag with an href attribute containing the destination URL.
「 ✦ What is the difference between a 'class' and an 'ID' in CSS✦ 」
ids must be unique where as class can be applied to many things.
「 ✦ What is the difference between a 'class' and an 'ID' in CSS✦ 」
Padding controls space inside an element's border, while margin controls space outside, separating it from other elements.
「 ✦When should I use an <ol> instead of a <ul>?✦ 」
An ol (ordered list) should be used for a list of items where the sequence or ranking is important, such as a set of instructions or a top ten list. A ul (unordered list) should be used when the order of the items does not matter, such as a list of ingredients or a simple list of links