Class 05 Notes
HTML & CSS
Chapter 5: Images
You add images using the tag. Using the src attribute you link the image file to your tag. You may also add something called alternative text to describe what the image is in case it doesn’t load. Example:
<img src="images/Cordon-Bleu-Grad.jpeg" alt="drawing" width="300"/> <img src="images/CB100_logo-retina.jpeg" alt="drawing" align="top" width="500"/>
Chapter 11: Color
There are many different ways to indicate which color you want to pick. For example:
- RGB Values
- Hex Code
- Color Names
- Hue
You can also change the saturation, brightness, opacity. An example of a color selection:
h1 {
color: #42f56c;
}
Chapter 12: Text
There are lots of ways modify text using CSS. Here are a couple ways.
Type faces:
- Serif
- Sans-serif
- Monospace
- Cursive
- Fantasy
Units of type size :
- Pixels
- Percentages
- Ems
There are more ways easily found in the textbook or using google!