Q7. How many types of CSS can be included in HTML?There are three ways to include the CSS with HTML: Inline CSS: It is used for styling small contexts. To use inline styles add the style attribute in the relevant tag.External Style Sheet: This is used when the style is applied to many pages. Each page must link to the style sheet using the tag. The tag goes inside the head section. Internal Style Sheet: It is used when a single document has a unique style. Internal styles sheet needs to put in the head section of an HTML page, by using the tag in the following way: hr {color:sienna}p {margin-left:20px}body {background-image:url('images/back40.gif')} - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login

Q7. How many types of CSS can be included in HTML?

There are three ways to include the CSS with HTML:

Inline CSS: It is used for styling small contexts. To use inline styles add the style attribute in the relevant tag.

External Style Sheet: This is used when the style is applied to many pages. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section.

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>

Internal Style Sheet: It is used when a single document has a unique style. Internal styles sheet needs to put in the head section of an HTML page, by using the <style> tag in the following way:

<head>
<style type="text/css">
hr {color:sienna}
p {margin-left:20px}
body {background-image:url("images/back40.gif")}
</style>
</head>

25 May 2020 04:53 PM study24x7 study24x7

Q7. How many types of CSS can be included in HTML?

There are three ways to include the CSS with HTML:

Inline CSS: It is used for styling small contexts. To use inline styles add the style attribute in the relevant tag.

External Style Sheet: This is used w...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles