-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fixed and updated readme example
- Loading branch information
1 parent
76d9083
commit 32876d0
Showing
1 changed file
with
24 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,24 @@ | ||
<html><head><title>My Page Title</title><style>.wrapper {background:black;display:flex;align-items:center;justify-content:center;}</style></head><body><div class="wrapper"><p>I'm a child of div.wrapper</p><b style="color:aliceblue;">And so am I</b><hr/><a href="http://example.com">Click me</a><button id="button-id">I'm also a child</button></div><script>const btn = document.querySelector('#button-id');</script></body></html> | ||
<html> | ||
<head> | ||
<title>My Page Title</title> | ||
<style> | ||
.wrapper { | ||
background: black; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<p>I'm a child of div.wrapper</p> | ||
<b style="color: aliceblue">And so am I</b> | ||
<hr /> | ||
<a href="http://example.com">Click me</a><button id="button-id">I'm also a child</button> | ||
</div> | ||
<script> | ||
const btn = document.querySelector('#button-id'); | ||
</script> | ||
</body> | ||
</html> |