Contact Us || Privacy Policy || About Us |
|
HTML StyleIn HTML Style are mainly used for color of elements like font , text, size, etc. Style attribute basically describe the how a document will be presented in a browser. There are three ways of implementing style in HTML :
1) Inline StyleFor Inline style , According to CSS rules are directly written inside the starting tag using the style attribute. The style attribute includes a ' property : value ' separated by a semicolon ( ; ). ExampleOutputExample of Inline StyleFirst paragraph Second paragraph 2) Embedded Style or Internal styleInternal style is defined in the <head> section of an HTML like in Example. ExampleOutputExample of Embedded StyleFirst paragraph. 3) External Style SheetExternal Style Sheets method is used to separate document that you can link from an HTML file on your site. ExampleWhere externalstyle.css is File name which hold the all css code.
Next TopicHTML Title
|