+ All Categories
Home > Self Improvement > Static web sites assignment 1 philip lemmon1

Static web sites assignment 1 philip lemmon1

Date post: 24-Jan-2015
Category:
Upload: lemmon12
View: 230 times
Download: 0 times
Share this document with a friend
Description:
 
26
STATIC WEB SITES ASSIGNMENT 1 Philip Lemmon
Transcript
Page 1: Static web sites assignment 1 philip lemmon1

STATIC WEB SITES ASSIGNMENT 1Philip Lemmon

Page 2: Static web sites assignment 1 philip lemmon1

WHY AND WHAT AM HAVE I CREATED!? I am creating a slide show presentation for my static

website assignment. I have decided to use html5 to code in because it: - Makes sites more accessible - Has video and audio support - Works with mobile browsers - Clean and easy to read code - Works on all popular browsers - Has a simple DTD which goes at the start of the

code.

Page 3: Static web sites assignment 1 philip lemmon1

THIS IS THE BASIC STRUCTURE OF MY HTML5 DOCUMENT.YOU CAN SEE I HAVE USED THE BASIC ELEMENTS OF HTML5 AND COMMENTED MY CODE SO IT IS EASIER TO READ.

Page 4: Static web sites assignment 1 philip lemmon1

BUT AS YOU CAN SEE, MY PAGE STILL HAS NO STYLE.

Page 5: Static web sites assignment 1 philip lemmon1

TABLE

The element I have chosen to focus on is a table.A table is used so that data can be well defined and seen clearly.

The type of table I have decided to include in my website is a grid table.

Page 6: Static web sites assignment 1 philip lemmon1

HOW TO CODE A GRID TABLE

To code a grid table is very simple as you can see below (anything after “<-- ” is a comment:

<table class="gridtable"> <-- Defines the table class --><tr> -- defines table row<th>Strength</th><th>Agility</th><th>Intelligence</th> <-- <th> and </th> start and end table header cells --></tr> <-- ends table row --><tr><td>Sven</td><td>Sniper</td><td>Zues</td> <-- <td> and </td> start and end basic table cells --></tr><tr><td>Pudge</td><td>Viper</td><td>Pugna</td></tr>

</table> <-- Ends table -->

Page 7: Static web sites assignment 1 philip lemmon1

WITHOUT COMMENTS IT LOOKS LIKE THIS

<table class="gridtable"><tr><th>Strength</th><th>Agility</

th><th>Intelligence</th></tr><tr><td>Sven</td><td>Sniper</td><td>Zues</

td></tr><tr><td>Pudge</td><td>Viper</

td><td>Pugna</td></tr>

</table>

Page 8: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH? FIREFOX

Page 9: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH? GOOGLE CHROME

Page 10: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH?OPERA

Page 11: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH?INTERNET EXPLORER

Page 12: Static web sites assignment 1 philip lemmon1

CODE WORKS AS EXPECTED

As you can see the code for the website works as expected.

The table has no outlines/cells that you can see visibly yet because I have not yet added the style sheet.

Page 13: Static web sites assignment 1 philip lemmon1

GRID TABLE CSS

I have decided to make to style the table within the CSS. Without the CSS the table does not have visible cells or header cells dividing the information. When the CSS sheet is complete, I will be able to change the colour, size and border of the cells. I will also be able to change the font, colour and size of the text that I use.

Page 14: Static web sites assignment 1 philip lemmon1

GRID TABLE CSStable.gridtable {

font-family: Impact, Charcoal, sans-serif;font-size:20px;color:#336666;border-width: 1px;border-color: #666666;border-collapse: collapse;

}table.gridtable th {

border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;background-color: #dedede;

}table.gridtable td {

border-width: 1px;padding: 8px;border-style: solid;border-color: #666666;background-color: #ffffff;

}

Page 15: Static web sites assignment 1 philip lemmon1

GRID TABLE CSS WITH BREAK-DOWN

Page 16: Static web sites assignment 1 philip lemmon1

WHAT TABLE NOW LOOKS LIKE WITH CSS

The colours are still a bit boring, so I will alter my CSS to change it to something a bit more exciting.

Page 17: Static web sites assignment 1 philip lemmon1

CHANGE TO CSS

Page 18: Static web sites assignment 1 philip lemmon1

NEW COLOURS IN CSS TABLE

Page 19: Static web sites assignment 1 philip lemmon1

BORDERS AND WIDTH

Now the colours look good, I will now demonstrate how to alter the size of the table using the CSS code.

Page 20: Static web sites assignment 1 philip lemmon1

The code is altered to make the space around the text larger and the border thicker.I gave the header cells more space so they stood out a bit more.

Page 21: Static web sites assignment 1 philip lemmon1

TABLE WITH ALTERED BORDERS

Page 22: Static web sites assignment 1 philip lemmon1

DOES MY CSS WORK WITH OTHER WEB BROWSERS?

I also wrote CSS for the rest of my web page to tidy up the styling.

Page 23: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH? FIREFOX

Page 24: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH? CHROME

Page 25: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH? OPERA

Page 26: Static web sites assignment 1 philip lemmon1

WHAT WEB BROWSERS DOES IT WORK WITH? INTERNET EXPLORER


Recommended