Skip to content

Latest commit

 

History

History
38 lines (37 loc) · 861 Bytes

File metadata and controls

38 lines (37 loc) · 861 Bytes

introduction css?

CSS allows you to create rules that specify how the content of

an element should appear. For example, you can specify that

the background of the page is cream, all paragraphs should

appear in gray using the Arial typeface, or that all level one

headings should be in a blue, italic, Times typeface

element:

  • p { color:red; }

Using External CSS:

<link href="css/styles.css" type="text/css"

rel="stylesheet" />

using internal css:

<style type="text/css">

body { font-family: arial; background-color: rgb(185,179,175);} h1 { color: rgb(255,255,255);} </style>

# color : /* color name */ h1 { color: DarkCyan;} /* hex code */ h2 { color: #ee3e80;} /* rgb value */ p { color: rgb(100,100,90);} # background-color: body { background-color: rgb(200,200,200);} h1 { background-color: DarkCyan;}