CSS How to Create:
- Inline - by using the style attribute inside HTML elements.
- Internal - by using a <style> element in the <head> section.
- External - by using a <link> element to link to an external CSS file.
Create a CSS rules
Place the insertion point in the document, and then do one of the following to open the New CSS Rule dialog box.
In the New CSS Rule dialog box, specify the selector type for the CSS rule you want to create.
Select the location in which you want to define the rule, and then click OK.
CSS syntax:
Css consists of a selector, property, anits valued
»External styles are defined within the <link> element, inside the <head> section of an HTML page:
Example
<html>
<head>
<link rel="stylesheet"
href="mystyle.css">
</head>
<body>
<h1>This is my heading</h1>
<p>Hii I am pooja.</p>
</body>
</html>
Output:
This is my heading
Hii I am pooja.