Created
August 9, 2020 09:51
-
-
Save kushalseth/6ecc3a0d295e93d2c2796585ad46a458 to your computer and use it in GitHub Desktop.
CSS for developer
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
div, p { | |
background-color: yellow; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>This is h1 directly under body</h1> | |
<div> | |
<h2>I am h2 directly under div</h2> | |
<p>This is para inside div, but not directly inside div</p> | |
</div> | |
<div> | |
<p>This is para directly inside div</p> | |
<span><p>This is para inside span</p></span> | |
</div> | |
<p>I am paragraph directly inside the body and below a div</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment