Types of HTML CSS
To change a HTML documents style Three Types to Add CSS in HTML
1. Inline CSS: To using by <p style> change a style of HTML Attribute.
2. Internal CSS: by using <style> tag in the below of <head> tag.
3. External CSS: By using <link> element in link to external CSS file.
INLINE CSS
We use inline CSS in a line
Example: <p style=“color:green;”> Green Text </p>
Here we use inline css…
INTERNAL CSS
In this section we use Internal CSS.
We use <style> element under the <head> section.
Example:
<style>
p {color:green ;}
</style>
EXTERNAL CSS
External CSS create a new file in sublime text and save with filename.css extention.
Link with your css file code in below
<link rel=“stylesheet” href=“filename.css”>
This code also write on under <head> tag....
Comments
Post a Comment