Written Assignment unit 3 Web Programming
Written Assignment unit 3 Web Programming
1. <!DOCTYPE html>
2. <html lang="en">
3. <head>
4. <meta charset="UTF-8">
5. <meta name="viewport" content="width=device-width, initial-
scale=1.0">
6. <title>Coloured Numbers</title>
7. <style>
8. h2 {color: blue;
9. font-size: 60px;
10. }
11. .number {
12. font-size: 50px;
13.
14. }
15. .color1 { color: pink; }
16. .color2 { color: red; }
17. .color3 { color: burlywood; }
18. .color4 { color: indigo; }
19. .color5 { color: orange; }
20. .color6 { color: violet; }
21. .color7 { color: yellow; }
22. .color8 { color: purple; }
23. .color9 { color: greenyellow; }
24. .color10 { color: blue; }
25. </style>
26. </head>
27. <body>
28. <h2> Numbers 1- 10</h2>
29. <div class = "number color1">1</div>
30. <div class = "number color2"></div>
31. <div class = "number color3">3</div>
32. <div class = "number color4">4</div>
33. <div class = "number color5">5</div>
34. <div class = "number color6">6</div>
35. <div class = "number color7">7</div>
36. <div class = "number color8">8</div>
37. <div class = "number color9">9</div>
38. <div class = "number color10">10</div>
39.
40. </body>
41. </html>
1. <!DOCTYPE html>
2. <html lang="en">
3. <head>
4. <meta charset="UTF-8">
5. <meta name="viewport" content="width=device-width, initial-
scale=1.0">
6. <title>Square of Numbers</title>
7. </head>
8. <body>
9. <h2>Squares of Numbers 1-10</h2>
10. <p> 1<Sup>2</Sup>= 1</p>
11. <p> 2<Sup>2</Sup>= 4</p>
12. <p> 3<Sup>2</Sup>= 9</p>
13. <p> 4<Sup>2</Sup>= 16</p>
14. <p> 5<Sup>2</Sup>= 25</p>
15. <p> 6<Sup>2</Sup>= 36</p>
16. <p> 7<Sup>2</Sup>= 49</p>
17. <p> 8<Sup>2</Sup>= 64</p>
18. <p> 9<Sup>2</Sup>= 81</p>
19. <p> 10<Sup>2</Sup>= 100</p>
20. </body>
21. </html>
135. }
136.
137. a {
138. text-decoration: none;
139. color:#007bff;
140.
141. }
142.
143. a:hover {
144. text-decoration:underline;
145. }
146.
147.
148. </style>
149. </head>
150. <body>
151. <div id = "top"><a href = "#bottom"> Jump to Bottom!
</a></div>
152. <!-- Content -->
153.
154. <h1 style = "margin-top:50px;" > Scroll Down for More
Content...</h1>
155.
156. <p style = "margin-top: 1000px;" > This is the bottom of
the page.</p>
157.
158. <div id = "bottom"><a href = "#top">Jump to Top!
</a></div>
159.
160. </div>
161. </body>
162. </html>
These HTML documents cover all specified requirements, including displaying numbers in
different colors, calculating squares, creating lists, formatting addresses like envelopes,
implementing navigation links, displaying images, and presenting stock prices in a table format.