Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language.
😇 EXAMPLE:
💥
body {
background-color: lightblue;}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
😇 CSS write Three ways...........
😅 Each page must include a reference to the external style sheet file inside the <link> element. The <link> element goes inside the <head> section:
<head>
<link rel="stylesheet" type="text/css"
href="mystyle.css">
</head>
😅 Internal styles are defined within the <style> element, inside the <head> section of an HTML page:
<head>
<style>
body {
background-color: linen;}
h1 {
color: maroon;
margin-left: 40px;}
</style>
</head>
😅 An in line style may be used to apply a unique style for a single element.
<h1 style="color:blue;margin-left:30px;">This is a heading</h1>
💠HTML+CSS
No comments:
Post a Comment