Created
February 17, 2021 03:33
-
-
Save crcn/b777be1b489b5fc982e33cbf8f271a5f to your computer and use it in GitHub Desktop.
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
<!-- | |
You can define styles at the top of the document, and they will | |
be applied to all elements within this file. | |
--> | |
<style> | |
div { | |
color: red; | |
} | |
</style> | |
<div> | |
I'm red! | |
<span> | |
<!-- | |
You can also define styles within an element, | |
and they will only be applied to that element, | |
along with all of its descendents. | |
--> | |
<style> | |
color: purple; | |
</style> | |
I'm purple! | |
</span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment