CSS: Lesson 4 - how to use embedded CSS


Embeded CSS
Here is an exercise that will allow you to see how embedded css works.   Embeded CSS is always contained within the <head> tag  and actual css must be contained within the <Style> tag. 
<html>
<head>
 <title>CSS Basics</title>
<style>
p {
color: green;
}
</style>

</head>
<body>
<p>This is the first paragraph – it is green <p>
<p> <p>
<p>The third paragraph is also green - what is going on.   This probably why i need use an id or class to identify a specific paragraph tag and not all of them</p>
</body>

</html>

1 comment:

TUTORIALS

  • HTML
  • CSS
  • Javascript
  • JQuery
  • PHP
  • MySQL

Labels