-
Notifications
You must be signed in to change notification settings - Fork 34
/
2.7_shapes.html
41 lines (33 loc) · 1.08 KB
/
2.7_shapes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Shapes</title>
<script src="https://d3js.org/d3.v7.js"></script> <!-- link to D3 library -->
<style type="text/css">
h1 {color:red;} /* CSS styling */
p {color:blue;}
circle {fill:aqua}
.paragraph {color:palevioletred}
</style>
</head>
<body>
<h1>h1 header</h1> <!-- some HTML -->
<h2>h2 header</h2>
<h3 style="font-family: Palatino;">h3 header</h3>
<p>paragraph</p>
<svg width="500" height="300"> <!-- some SVG -->
<rect x="20" y="20" width="460" height="260" fill="lightblue"></rect>
<circle id = "circle1" cx="50" cy="75" r="20" fill="blue"></circle>
<circle cx="100" cy="200" r="25" ></circle>
<ellipse cx="175" cy="100" rx="45" ry="30" fill="green"></ellipse>
<text x="150" y="200">(150, 200)</text>
<line x1="250" y1="150" x2="300" y2="200" stroke="red" stroke-width="5"></line>
</svg>
<p class = "paragraph">another paragraph1</p>
<p class = "paragraph">another paragraph2</p>
<script>
// JavaScript / D3 will go here
</script>
</body>
</html>