-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from thuongtruong1009/CSS-course
feat: add new feature
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
CSS basic/[04] style-multiple-elements-with-a-css-class.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<style> | ||
.red-text { | ||
color: red; | ||
} | ||
</style> | ||
|
||
<h2 class="red-text">CatPhotoApp</h2> | ||
<main> | ||
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p> | ||
|
||
<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a> | ||
|
||
<div> | ||
<p>Things cats love:</p> | ||
<ul> | ||
<li>cat nip</li> | ||
<li>laser pointers</li> | ||
<li>lasagna</li> | ||
</ul> | ||
<p>Top 3 things cats hate:</p> | ||
<ol> | ||
<li>flea treatment</li> | ||
<li>thunder</li> | ||
<li>other cats</li> | ||
</ol> | ||
</div> | ||
|
||
<form action="https://freecatphotoapp.com/submit-cat-photo"> | ||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label> | ||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br> | ||
<label><input type="checkbox" name="personality" checked> Loving</label> | ||
<label><input type="checkbox" name="personality"> Lazy</label> | ||
<label><input type="checkbox" name="personality"> Energetic</label><br> | ||
<input type="text" placeholder="cat photo URL" required> | ||
<button type="submit">Submit</button> | ||
</form> | ||
</main> |