Skip to content

Commit

Permalink
Merge pull request #8 from thuongtruong1009/CSS-course
Browse files Browse the repository at this point in the history
feat: add new feature
  • Loading branch information
thuongtruong1009 authored Sep 8, 2021
2 parents d07aeb0 + 7ae2669 commit 428ff62
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CSS basic/[04] style-multiple-elements-with-a-css-class.html
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>

0 comments on commit 428ff62

Please sign in to comment.