Programming Assignment Unit 3
Programming Assignment Unit 3
1. Create an HTML document that displays the numbers 1 - 10, each number being
a different color.
<html>
</p>
</head>
<body>
<font color="green">1</font>
<font color="yellow">2</font>
<font color="red">3</font>
<font color="cyan">4</font>
<font color="purple">5</font>
<font color="brown">6</font>
<font color="orange">7</font>
<font color="gold">8</font>
<font color="grey">9</font>
<font color="magenta">10</font>
</body>
</html>
2. Create an HTML document that displays the squares of the numbers 1 - 10.
<html>
2
</p>
</head>
10<sup>2</sup> = 100
</body>
</html>
3. Create an HTML document that displays two lists with any information you
want. One list should be an ordered list, the other list should be an unordered list
<html>
</p>
<body>
<ol>
3
</ol>
</ul>
</body>
</html>
4. Create an HTML document that displays two addresses in the same format used
on the front of envelopes (senders address in top left corner, receivers address in
Dilbert H.
Someone A. Person
<html>
</p>
</head>
<body>
<i>
</i>
<i> <center>
</i></center>
</body>
</html>
5. Create a page with a link at the top of it that when clicked will jump all the way
to the bottom of the page. At the bottom of the page there should be a link to
<!DOCTYPE>
<html>
<head>
<body>
<div id="maincntr">
<nav>
</nav>
<article>
<h3><strong>Here you will find the outline and aspect requirements for your
assignment</strong></h3><br />
<p><strong>
</strong>
<p>
Create an HTML document that displays the numbers 1 - 10, each number being a
<p><strong>
6
</strong>
<p>
Create a second HTML document that displays the squares of the numbers 1 - 10.
<p><strong>
</strong>
<p>
Create a third HTML document that displays two lists with any information you want.
One list should be an ordered list, the other list should be an unordered list. </p>
<p><strong>
</strong>
<p>
Create a forth HTML document that displays two addresses in the same format used
on the front of envelopes (senders address in top left corner, receivers address in the
</p>
<p>
Dilbert H.
7
</p>
<p>
Someone A. Person
<p><strong>
Create a Page?
</strong>
</p>
Create a page with a link at the top of it that when clicked will jump all the way to the
bottom of the page. At the bottom of the page there should be a link to jump back to
<p><strong>
Create Links?
</strong>
</p>
Create links to four different pages on four different websites that should all open in a
<p><strong>
8
</p>
</article>
<footer id="footer">
</footer>
</div>
</body>
</html>
6. Create links to four different pages on four different websites that should all
<!DOCTYPE>
<html>
</p>
<body>
<h3> Click on the links provided below to browse to the different types of websites.
</h3>
<nav>
</a> <br/><br/>
ACTUALLY READ
</a> <br/><br/>
</a> <br/><br/>
</a> <br/><br/>
</nav>
</body>
</html>
7. Display five different images. Skip two lines between each image. Each image
<!DOCTYPE>
<html>
</p>
<head>
</head>
10
<body>
<p>
<img
src="https://cdn.dxomark.com/wp-content/uploads/medias/post-151141/Samsung-
Galaxy-Book3-Pro-16_featured-image-packshot-review.jpg" alt="GALAXY
<img
src="https://www.beatsbydre.com/content/dam/beats/web/home/2022/10/hp-register--
height="132"
<img src="https://ssl-product-images.www8-hp.com/digmedialib/prodimg/lowres/
c05249116.png?impolicy=Png_Res"
<br/>
<img src="https://i.pcmag.com/imagery/reviews/05ksNAGEUPzZ1E4pNWrUhb4-
1.fit_lim.size_840x473.v1676064988.jpg"
ROG RAPTURE
<br/> <br/>
11
<img src="https://fdn.gsmarena.com/imgroot/news/24/01/samsung-galaxy-s24-ultra-
</p>
</body>
</html>
8. Display an image that has a border of size 2, a width of 200, and a height of 200.
<!DOCTYPE>
<html>
</p>
<style>
#image001 {
width: 200px;
height: 200px;
</style>
<body>
<img
12
src="https://logowik.com/content/uploads/images/941_amazon.jpg" alt="AMAZON
</p>
</body>
</html>
9. Display an image that when clicked will link to itself and will display the image
<!DOCTYPE>
<html>
</p>
<style>
img{href:self}
</style>
<body>
<a
href="https://logowik.com/content/uploads/images/941_amazon.jpg" target="_self">
<img
13
src="https://logowik.com/content/uploads/images/941_amazon.jpg" alt="AMAZON
</a>
</body>
</html>
10. Display an image that when clicked will link to a search engine of your choice
<!DOCTYPE>
<html>
</p>
<style>
img{href:self}
</style>
<body>
<img
src="https://blogs.microsoft.com/wp-content/uploads/prod/
2012/08/8867.Microsoft_5F00_Logo_2D00_for_2D00_screen.jpg"
alt="MICROSOFT" width="250"
14
height="132" title="MICROSOFT">
</a>
</body>
</html>
Pick 5 corporations and hunt down their current stock prices. Place them in a neatly
arranged table with their name, symbol, last price, 52wk high, 52wk low and PE ratio.
The end result should look like the following. Notice that he first column is aligned left
<!DOCTYPE>
<html>
</p>
<style>
table, th, td {
border-collapse: collapse;
padding: 10px;
text-align: center;
</style>
15
</head>
<body>
<tr>
</tr>
<tr>
<th>SYMBOL</th>
<th>Market Cap</th>
<th>YTD Performance</th>
<th>P/E RATIO</th>
<th>SECTOR</th>
</tr>
<tr>
<td>AVGO</td>
<td>$562.12 billion</td>
<td>115.19%</td>
<td>36.46.</td>
16
<td>Technology</td>
</tr>
<tr>
<td>ASML</td>
<td>$354.7 billion</td>
<td>14.91%</td>
<td>41.45.</td>
<td>Technology</td>
</tr>
<tr>
<td>CRM</td>
<td>$275.33 billion</td>
<td>28.34%</td>
<td>107.96.</td>
<td>Technology</td>
</tr>
<tr>
<td>CSCO</td>
17
<td>$204.05 billion</td>
<td>0.09%</td>
<td>15.15.</td>
<td>Technology</td>
</tr>
<tr>
<td>SAP</td>
<td>$219.28 billion</td>
<td>11.97%</td>
<td>30.05.</td>
<td>Technology</td>
</tr>
</table>
</body>
</html>
18
References
LearnCode.academy. (2013, October 21). Web development tutorial for beginners (#1) - How
https://youtu.be/3JluqTojuME
Morris, J. (2018, July 30). HTML tags, attributes and elements [Video]. YouTube. Retrieved
from https://youtu.be/vNOyRZIkC7o
from https://www.w3schools.com/html/default.asp
Words: 1,295