We can write CSS in three different ways. They are:
1. Inline CSS
2. Internal CSS
3. External CSS
1. Inline CSS:
2. Internal CSS:
1. Inline CSS
2. Internal CSS
3. External CSS
1. Inline CSS:
<body style="background-color:#ff0000;">
</body>
2. Internal CSS:
<body>
</body>
<style> body{ background-color:#ff0000;} </style>
3. External CSS:<link rel="stylesheet" type="text/css" href="style.css">
No comments:
Post a Comment