Computer Science, asked by sureshpatel35, 8 months ago

EXERCISE


1).State the purpose of Cascading style sheets?

2).Why should we keep the style and the content of a webpage separate ?

3).Explain the syntax of CSS?

4).State the advantages of CSS?

5).List the disadvantages of CSS?

6).Why do we use JavaScript in HTML pages ?

7).How does an HTML page identify the JavaScript code ? Give an example?​

Answers

Answered by santlalsharma20195
8

Answer:

1 Ans. CSS stands for Cascading Style Sheets and is used by web pages to help keep information in the proper display format.

CSS files can help define font, size, color, spacing, border and location of Html information on a web page, and can also be used to create a continuous look throughout multiple pages of a website.

2. Ans. They become easy to maintain as your webpage scale.

If your server caches CSS files, you won't need to load the same CSS code across different webpages which share the same styles code. This means less loading time and faster webpages.

3 Ans .CSS Syntax. The selector points to the HTML element you want to style.

Each declaration includes a CSS property name and a value, separated by a colon. Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.

4 Ans. Some of the advantages of using CSS are:

* Easier to maintain and update.

* Greater consistency in design.

* More formatting options.

* Lightweight code.

* Faster download times.

*Search engine optimization benefits.

* Ease of presenting different styles to different viewers.

* Greater accessibility.

5 Ans. Disadvantages.

* There could be cross-browser issues while using CSS.

* There are multiple levels of CSS such as CSS, CSS 2, CSS 3.

*This can create confusion for non-developers and beginners.

6. Ans. JavaScript is a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive.

Incorporating JavaScript improves the user experience of the web page by converting it from a static page into an interactive one. To recap, JavaScript adds behavior to web pages.

thank you guys

santlal Sharma

Katihar Bihar 854105

Similar questions