|
||||||||||||||||||||||
CSS Introduction : CSS in HTMLWays of linking CSS with HTMLThere are three ways to use CSS with your HTML documents, as shown below.
Way 1: Link to external CSSUse an external CSS file, called pink.css. Just type away your CSS in notepad, save to your webdirectory.. and link it into your HTML file, using the <link> tag.
In your html file write:
Way 2: Embed CSS in <head>Embed the CSS inside the HTML file. Somewhere convinient, e.g. within the <head> tag, write the following:
Way 3: Inline CSS as an Attribute of HTMLEmbed the CSS inside the tag, specific to that tag only. This way doesn't require the { } definition. Simply type your atrributes, separating them with ; 's
Author: Markavian |
tutorial Pages
|
|||||||||||||||||||||