+ 3
Which method is best for use Inline CSS,External CSS or Internel CSS
6 Answers
+ 6
There's no best method, each of these has their own use-cases.
* Inline
Good for styling one unique element, the applied style is unlikely to be reusable in other element or document, and thus no point storing it in embedded or external stylesheet.
* External
Perfect for separation of CSS from HTML code, also easiest to maintain. Save reusable styles in external stylesheets in order to follow DRY concept.
* Embedded
Good for styles applied for a single page, styles embedded in HTML document ideally be the styles that are unlikely to be reusable in other document.
+ 3
Enternal:
<link rel="stylesheet" href="link-to-css.css">
Internal:
<style>
/* Your Css Here */
</style>
if You Want Your Code To Look Cool & Less, Use External CSS!
Or, You Can Use Internal CSS...
0
Css full form :- Cascading Style sheet đ
0
thanksđč đ
0
Internal :- đ
<style>
/* Your css here */
</style>