CSSNo Comments

default thumbnail

CSS is used to style a web page. To make the web page attractive, we use css. Three types of css is used.

Inline CSS( Type1)

Inline css is used in a html element. Here is the use of inline css

<p style="color:red; font-size:20px; text-decoration:underline"></p>

Inline the html element, these are the css properties.

Internal CSS(Type2)

Internal css is used a head section of a web page.

            <p style="color:red; font-size:20px;"></p>
Thus internal css is used inside the head section between <style></style>

External CSS(Type3)

External css is css file with .css extension like style.css
External css is lined on a page in head section like:

        <link href="style.css" rel="stylesheet">

Here we have a style.css file which is linked in head section. In href, we give the path of a file.

Be the first to post a comment.

Add a comment