Please provide an elaborate answer on each of the following questions:
1. What are the advantages of using CSS?
If you aren’t utilizing cascading style sheets in your web pages, you should be. CSS is well supported in today’s browsers. It’s simple to understand and provides better, cleaner code than applying all of those styles straight to your HTML. CSS modularizes webpages in the same manner that programmers have modularized software code for years. Your website’s modular code provides for more design consistency and easier maintenance. CSS has been the new standard for some years. It’s time to separate HTML structure from CSS display.
CSS has the following advantages:
· CSS has the following advantages:
· Less difficult to maintain and update
· Greater design consistency More formatting choices
· Code that is lightweight
· Download times that are faster
· Advantages of Search Engine Optimization
· Ease of presenting various styles to various viewers
· Improved accessibility
2. How to include CSS in the webpage?
CSS can be supplied as a separate document or incorporated directly in the HTML content. CSS may be included in an HTML document in three ways:
Inline styles;
The style property is used in the HTML start tag.
Embedded styles;
Using the <style> element in a document’s head section.
External style sheets;
The <link> element is used to point to an external CSS file.
3. What are the different types of Selectors in CSS?
Please accept my bid so that I can continue with the questions and formatting of the work