Skip to main content.

Lab 0: Static HTML, Intro to the Wiki, Tools, and Favicon

Goals

After the lab, you should know how to

  1. create pages and update the wiki
  2. change your password in the wiki
  3. write simple, valid HTML files
  4. validate your HTML files
  5. create and use favicons

Lab Notes

Objective: Browser and Its Tools

Firefox (and other browsers) has built-in developer tools. We will tend to use Mozilla Firefox because Mozilla is a not-for-profit company. You are welcome to use other browsers, but you should get to know the Firefox tools in this course.

Objective: Review Unix Commands

Review common Unix commands, since I will assume your knowledge of using them in the terminal.

Objective: Update the Wiki (10 pts)

Throughout this semester, you're going to create pages on the wiki for documentation of the project. We want to make sure that the wiki is set up correctly and that you have a general idea of how to use it.

If you find good resources that you want others to know about, update the "Resources" page with links to them.

Objective: Creating your own HTML pages

For this objective, you will create your own web pages.

Style note: All web pages that you create in this class must have descriptive headings, link text, and text. If you have images, you must include the alt attribute.

Making your Home Page (15 pts)

In a Web browser, go to http://www.cs.wlu.edu/~yourusername. What do you see? (Answers will vary.)

Copy example.css, example.html, and example.jpg from /csdept/courses/cs335/handouts/lab0 into your public_html directory.

If you already have a web page:

else:
  1. Point your browser at the location: http://www.cs.wlu.edu/~yourusername/ Now, what do you see?
  2. Copy example.html into a file named index.html. Now, point your browser to the location: http://www.cs.wlu.edu/~yourusername/ What do you see?
  3. Copy example.css into a file named yourname.css.
  4. In a terminal, go to your public_html directory, and open index.html in jedit or your favorite text editor.
  5. Edit the file so that the title and the top-level heading say "<Your Name>'s Home Page". Save the file. Reload the page in the browser... How cool is that?
  6. Modify the CSS link so that it uses yourname.css.
  7. Next, add an image to your web page. Find an image from the web. Save the image into the public_html directory. Change the image tag in your web page to display this image.
  8. Update the information at the bottom of the page as well, to give yourself credit for your work.

Feel free to add more. This is your web page, after all! At the least, you must have done the above. (We'll do more to this page tomorrow.)

Creating Your Home Page for CS335 (40 pts)

You're going to create your own home page for CS335. One purpose of the page is to link to submissions for some of your assignments.

  1. In your public_html directory, create a directory named cs335
  2. Create an index.html file in the cs335 directory. (You can use one of the example files or your home page as a template.)
  3. This page should contain:
    • a main heading and title for the page
    • a link (as in the stylesheet link, not the anchor link) to your copy of the CSS stylesheet in the parent directory
    • a link to the CS335 course page
    • a link to the CS335 wiki page
    • a link to the CS335 page of the student to the right of you (or someone else in the class). If you are against the wall, link to the leftmost person in the row behind you. If you're in the back right corner, link to the person in the front left of the room.
    • a heading for these links
    • a heading for your submissions for assignments
    • at the bottom of your page, under a horizontal rule, create a link to your home page
    • a comment that lists you as the author
    • meta elements for keywords and description (see metaexample page or slides for examples)
  4. You may want to bookmark the above course-related links while you're creating this web page.
  5. Update your "main" home page so that it has a link to your cs335 page.

Validate Your Web Page

  1. Open a new tab to the W3C Markup Validation Service
  2. Validate that your cs335 page adheres to the specification by entering the URI to your page into the textfield and click "Check". If your HTML is not valid, fix the HTML.
  3. Validate that your cs335 page has valid links using the W3C Link Checker. If your links are not valid, fix them.

Objective: Creating a Favicon (10 pts)

Add a favicon to your main web page. You can either create a favicon from an image or create your own using Linux's kIconEdit tool (search in applications) or use favicon.cc. (Or find your own service.) If you make your own image, view it at 100% to see how it will look in the browser. For best results, the size of the icon should be 16x16 pixels and the image format should be .ico or .png.

Beyond favicons, there are also app or touch icons (e.g., those icons on your smart phone). If you'd like to know more, see The 2019 Guide to FavIcons for Nearly Everyone and Every Browser

Grading (75 pts)

Due by 11:59 p.m. tonight.