2. Three Ways To Insert CSS
• Inline Style
• Internal Style
• External Style
3. Inline Style
• Inline Style is use for a Specific Element.
• It is used as a style attribute of a particular tag.
• The style attribute contains the CSS property.
• It is used only for one element.
4. Inline Style Example
• <h1 style="color:blue;font-size:30px;">This is a heading</h1>
• <p style=“font-size=20px;text-align=center”> This is a Paragraph</p>
5. Internal Style
• It Specify the CSS Style in the head section of the HTML document.
• It is used for multiple tags.
• <style> tag is used in the head section.
• <style> tag contains the style properties.
7. External Style
• It is used to put a CSS Style into number of HTML documents.
• It just links the CSS Style into the head section of HTML.
• Just one file can be used to design the entire style of the website.
• Each page should contain the <link> tag in the head section which gives
reference to Style sheet to the page.
9. Difference
Inline
• CSS Style- Inside
tag
• Affects only one
Tag
Internal
• CSS Style- Reference
head section
• Affects Multiple Pages
External
• CSS Style- Inside
head section
• Affects Multiple
Tag