3 Answers. You can, but you really ought not to. Instead, use separate script files which happen to correspond to the CSS files you use.
What are the 3 types of CSS?
There are three types of CSS which are given below:
- Inline CSS.
- Internal or Embedded CSS.
- External CSS.
Where do you put CSS in HTML?
How to Add CSS to HTML
- Inline CSS: Requires the style attribute placed inside an HTML element.
- Internal CSS: Requires the
- External CSS: Requires the element placed inside the head section of an HTML file.
How do you import CSS?
Note: There are two different ways to import a CSS file into another using @import url(“style2. css”); or @import “style2. css”; or directly import any CSS file or multiple CSS file in the HTML file directly within