Built with blockbuilder.org
Last active
February 3, 2020 02:14
-
-
Save molliemarie/afdc4612a04b481d7f97051e86525442 to your computer and use it in GitHub Desktop.
BartCHart1_HTML_Starter
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
license: mit |
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> | |
<meta charset="utf-8"> | |
<title>First Bar Chart Using HTML!</title> | |
<style> | |
/* 5) Set `rect` elements to have a "fill" of "purple" or whatever color you choose */ | |
rect { | |
fill: purple; | |
} | |
svg { | |
border: 1px solid #f0f; | |
} | |
</style> | |
</head> | |
<body> | |
<!-- 1) Make a container `<div>` in which you'll render your content --> | |
<!-- 2) Create a `<p>` element in which you write "My Bar Chart" --> | |
<!-- 3) Make a container `<svg>` element in which you'll place your rectangles --> | |
<!-- 4) Put 3 `<rect>` inside of your `<svg>`--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment