FAQ!

β€§β‚ŠΛšβœ§Frequently Asked Questionsβœ§Λšβ‚Šβ€§
γ€Œ ✦ What is 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 CSS? ✦ 」

CSS stands for Cascading Style Sheets. It is a stylesheet language used to describe the presentation of a document written in a markup language, most commonly HTML. It is a core technology of the World Wide Web, alongside HTML and JavaScript.


γ€Œ ✦ 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 standard practice in web development due to several key advantages like separation of concerns, reusability, maintainability and easier updates, cleaner HTML, caching, and collaboration.


γ€Œ ✦ What is the difference between an H1 and a P tag? ✦ 」

<p> describes a paragraph, and <h1> describe headings.


γ€Œ ✦ What does the 'alt' attribute do in an <img> tag? ✦ 」

The alt attribute in an <img> tag provides alternative text for an image. This text serves two primary purposes, accessibility and fallback content.


γ€Œ ✦ How do I link to another page? ✦ 」

To link to another page, you can use the <a> HTML tag with the href attribute for web pages, or use a built-in "Link" function in document editors like Microsoft Word. For web pages, place the URL in the href attribute and the link text between the opening and closing <a> tags. For a specific part of a document, you can insert a bookmark and then create a hyperlink that points to that bookmark.


γ€Œ ✦ 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 'margin' and 'padding' in CSS? ✦ 」

In CSS, both margin and padding are used to create space around an element, but they differ in where that space is applied and how it interacts with the element's content and border.


γ€Œ ✦ When should I use an <ol> instead of a <ul>? ✦ 」

You should use an <ol> (ordered list) when the sequence or ranking of the items is important, and a <ul> (unordered list) when the order does not matter.




BACK HOME