How many types CSS can be include in HTML?

0

There are three ways to include the CSS with HTML:

  1. Inline CSS : It is used when only small context is to be styled.

- To use inline styles add the style attribute in the relevant tag.

  1. External Style Sheet : 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:

  1. Internal Style Sheet : 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

asked Apr 14, 2023 at 23:56
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.