Contact Us || Privacy Policy || About Us |
|
How to Use CSSThere are three ways to use CSS in HTML documents that is.
1) Internal CSSInternal CSS are defined within the <style> tag, inside the <head> section of an HTML page: Syntax:- Example:-Test it Now2) External CSSOne external file is used for multiple html pages. Each HTML page must include a external style sheet file inside the head section. You can write all the CSS code in a css file. Its extension must be .css for example mystyle.css. Syntax:- Example:-File Name:- Hello.html Note:- First Open Notepad write only HTML Code and save Hello.html File Name:- mystyle.css Note:- Then Open again Notepad write the Only CSS code and save mystyle.css then link on HTML page in head section. Test it Now3) Inline CSSstyle tag is used to a single elements. Syntax:- Test it Now
Next TopicCSS Comments
|