Miami University Html Link Programming Code
Description
Purpose
The purpose of this assignment is to create a new page that contains an HTML table by starting some given code and modifying it, modify your index.html page so that it contains a link to this new page, and then upload both your new pages and your modified index.html files to your tiiny.host account.
Instructions
- Open a new Note Pad or TextEdit page.
- Copy the following code and then paste into this new page. Copy from <html> to </html>
<html>
<head>
<title>Three Things</title>
<style type=”text/css”> body {
background-color: lightyellow; font-family: sans-serif;
}
h1 {
color: midnightblue;
}
table {
margin-left:20px; margin-right: 20px;
border-collapse: collapse;
}
td, th {
border: thin dotted midnightblue; padding: 5px;
color: green
}
caption
{
caption-side: top; font-style:italic; color: midnightblue;
}
</style>
</head>
<body>
<h1>3 Words</h1>
<p>Here are 3 words that I like…</p>
<table>
<caption>Three Things</caption>
<tr>
<th>Joy</th>
<th>Knowledge</th>
<th>Random</th>
</tr>
<tr>
<td><img src=”happy.JPG”></td>
</tr>
</table>
</body>
</html>
- Modify the code to make a table of 5 things instead of 3 [your table structure can be either 5 columns and 2 rows or 2 columns and 5 rows] and change all of the content to reflect your own content. Your title, headings, and any content should reflect your topic and not include the sample content. Be sure to view the video in this module for modifying a table and only use CSS rules in the <style> section as in the example. Your page can be any 5 things, but your page should have the following:
- Two cells for each thing one should be a word, link, or description and the other should be an image or link. The example code has the word Joy associated with an image for one of the things.
- Use a style of table lines that you prefer. In place of the style thin, you can use medium or thick. Instead of dotted, you can use none, dashed, solid, double, groove, ridge, inset, or outset.
- Style the page with personalized colors and make sure that the title reflects the content.
- Modify your index.html home page to include a link to your new page. The code <a href = “5 html”>5 Things</a> would create text on your home page that states 5 Things and clicking the link would open the new page that is named 5 things.html.
- You may at this point want to create an images folder where you keep all of your images. To include an image on a page you would have a reference to the name of that image file such as <IMG SRC=webpicture.jpeg> where webpicture.jpeg is the name of the image file. If this image were in an images folder than the reference would be changed to <IMG SRC=images/webpicture.jpeg>
- Be certain to save your new 5 things page and your revised index.html file.
- Zip all the files and transfer them to your tiiny.host account.
- After transferring the files, open a web browser. Check all of your links and make certain both pages display as intended. If not, make adjustments and check again.
- Submit your URL in this assignment link.
Example
- The example code contains the code “target= _blank” This code allows the external site to be opened in a new page so you can easily return to your original page on your browser. Also note that when load this page, you will again have a broken link icon under the “Joy” heading because you do not have the image.
- The general table structure code for a 5 columns and 2 rows table is below:
<tr>
<th>Cell 1</th>
<th>Cell 2</th>
<th>Cell 3</th>
<th>Cell 4</th>
<th>Cell 5</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
</tr>
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."