Skip to content

Commit

Permalink
Merge pull request #7 from thuongtruong1009/CSS-course
Browse files Browse the repository at this point in the history
Create [03] use-a-css-class-to-style-an-element.html
  • Loading branch information
thuongtruong1009 authored Sep 7, 2021
2 parents 44f0413 + 4a3c197 commit d07aeb0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CSS basic/[03] use-a-css-class-to-style-an-element.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>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 d07aeb0

Please sign in to comment.