<h2 style="color: red">CatPhotoApp</h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
09 - Use CSS Selectors to Style Elements
css properties
Cascading Style Sheets 層疊樣式表
inline style 內聯樣式
selecter 選擇器
element 元素
tag 標籤 <style></style>
curly braces 花括號 { }
semicolon 分號 ;
<style>
h2 {color: blue;}
</style>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
10 - Use a CSS Class to Style an Element
class 類
<style>
h2 {
color: blue;
}
.red-text{
color: red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>