Today you will create a basic "About Me" HTML page and style it with a bit of CSS:
ol
We will be using Cloud9 to write web pages in this class since it makes it easier to view your changes live and offers built-in technologies that will be useful for the upcoming weeks.
You should receive an email from your TA through Cloud9 with a link to accept an invitation to join the "CSE 154 Fall 2017" team. To accept this invitation and setup an account:
There are various debugging tools available to help you learn web development. We will introduce two of the most common: Firefox's Firebug tool and Chrome's Web Inspector tool. You will likely only use one of these, depending on what browser you use (you're on your own if you use Internet Explore/Edge... but it's never too late to switch to a more current browser!).
You can find more information on how to use Firebug and/or Chrome Web Inspector on the slide below.
Firebug is a Firefox add-on that lets you dynamically examine or modify the content and styling of web pages. After installing it, right-click an element and choose Inspect Element with Firebug. The Chrome Web Inspector tool behaves the same way, and comes conveniently built-in with Chrome. You can launch both by hitting F12 while in your browser.
(See example screenshot on the next slide)
Create a page aboutme.html
that describes you. Include
information such as:
This example page describes textbook co-author Victoria Kirst. Look at the lecture slides about HTML to see examples of the right tags to use.
<ul>
,
<li>
ul
represents a bulleted list of items (block)
li
represents a single item within the list (block)
- No shoes
- No shirt
- No problem
<ol>
)
ol
represents a numbered list of items (block)
How 2 b a PRO web dev:
- Live HTML
- Breath CSS
- Sleep JavaScript
How 2 b a PRO web dev:
A list can contain other lists:
- Big Dogs:
- Boxer
- Great Dane
- Staffordshire
- Little Dogs:
- French Bulldog
- Mini Greyhound
Cloud 9 lets you run your website and see what you've made! Follow the directions on the slides below.
To view your page, click on the Run Project button in the top-right corner of the Cloud 9 Application.
You should see a tab at the bottom saying your Apache server is running. There will be a URL. Either copy this URL and open it in a new tab or click on it and select "open."
Next, click on the html page you created to see what it looks like.
Whenever you modify your html (or other) files, make sure to save them and then refresh your browser tab that has the page you created open.
(See example screenshot on slide below)
Create a CSS style sheet named styleme.css
to improve the
appearance of your About Me page. You can find some CSS properties
in the lecture slides or online.
Use a <link>
tag to reference your CSS file in your
HTML:
<head>
...
<link type="text/css" href="styleme.css" rel="stylesheet" />
...
</head>
There's still some more to do with your aboutme.html
page, but let's try
a test turnin to see your files live on a real webserver!
Note that the turnin only accepts an aboutme.html
page -- this means that if your
page links to other resources (like images) then you'll have to use absolute URLs to reference
them in your aboutme.html
page. Follow the directions on the slides below to turn
in your code!
aboutme.html
file from cloud9 (use the 'File' menu)
aboutme.html
from where you saved it on your local computer
aboutme.html
page. Click it, and see your page on webster!
(See example screenshot on slide below)
If you complete the previous exercises, great job! You can add any extra content to your page that you like. Or, if you want a challenge, try to figure out how to add the following styles:
These are tricks not covered yet in class. Use Google or A CSS reference such as W3Schools.
These are snippets of Victoria's updated page, showing links and drop-caps:
Links: (hover is not shown)
Drop-caps:
(See example screenshot on slide below)
Look up one of the favorite movies/shows from your About Me Page on imdb.com
In your page, reproduce some of the film's IMDB info in a nested list under that movie's bullet. You'll want to read through teh slides below to learn how to represent this information as a HTML definition list
Consider applying styles to your definition list to make it look snazzy
These are snippets of Victoria's updated page, showing a favorite movie:
<dl>
, <dt>
, <dd>
dl
represents a list of terms (block)
dt
represents each term, and dd
its
definition
- Coffee
- A beverage served cold or hot, reinvigorating
thousands of Seattlites each day.
- Espresso
- A caffeinated beverage that brings
happiness at the first sip and helps students survive their
exams.
ol
(See example screenshot on slide below)
These are snippets of Victoria's updated page with decremeting ol
:
If you finish all the exercises, you can add any other content or styles you like to your page.
If the lab is over or almost over, check with a TA and you may be able to be dismissed.
Once the lab time is up, you may stop working. You don't need to complete the remaining exercies unless you want to for fun.
Great work!