CSS Introduction

CSS stands Cascading Style Sheets, is used to style and control the layout of webpages.CSS can be used to define colours, fonts, borders, and the layout of a webpage.

Types of CSS:-


Internal Style Sheet:-
An internal style sheet should be used when a single document has a unique style. We define internal styles sheet on the head of an HTML page, inside the <style> tag,
Example
<head>
<title><title>
<style type=”text/css”>
Welcome to CODE Solutions
</style>
</head>
<body>

External Style Sheet:-
An external style sheet is deal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing just one file.
Each page must include a link to the style sheet with the <link> tag. The <link> tag goes inside the head section :
Example -
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

"myStyle.css":
p {margin-left: 20px;}
body {background-image: url("images/background.gif");}

CSS Introduction  CSS Introduction Reviewed by NEERAJ SRIVASTAVA on 3:22:00 PM Rating: 5

No comments:

Powered by Blogger.