Computer Science, asked by jayakumarprusty, 3 months ago

plz differentiate between external style sheets, embedded style sheets and inline styles in cascading style sheets of html...take the help of attachment and explain...
DO NOT SPAM OR ELSE I WILL REPORT..PLZ WRITE THE CORRECT ANSWER..IT IS REALLY VERY URGENT...​

Attachments:

Answers

Answered by ylopez7064
1

Answer:

Explanation:

Your HTML file will look like this:

<!DOCTYPE html>

<html>

<head>

<style>

body {

   background-color: blue;

}

h1 {

   color: red;

   padding: 60px;

}

</style>

</head>

<body>

<h1>Hostinger Tutorials</h1>

<p>This is our paragraph.</p>

</body>

</html>

Advantages of Internal CSS:

You can use class and ID selectors in this style sheet. Here’s an example:

.class {

   property1 : value1;

   property2 : value2;

   property3 : value3;

}

#id {

   property1 : value1;

   property2 : value2;

   property3 : value3;

}

Since you’ll only add the code within the same HTML file, you don’t need to upload multiple files.

Disadvantages of Internal CSS:

Adding the code to the HTML document can increase the page’s size and loading time.

External CSS

With external CSS, you’ll link your web pages to an external .css file, which can be created by any text editor in your device (e.g., Notepad++).

This CSS type is a more efficient method, especially for styling a large website. By editing one .css file, you can change your entire site at once.

Follow these steps to use external CSS:

Answered by devanshd0007
3

Answer:

An external stylesheet is a standalone . css file that is linked from a web page. The advantage of external stylesheets is that it can be created once and the rules applied to multiple web pages. Inline styles relate to a specific HTML tag, using a style attribute with a CSS rule to style a specific page element.

Similar questions