Internet Programming
RSS icon Email icon Home icon
  • Lab #0 Class Web Page

    Posted on April 6th, 2009 admin No comments

    To assist the TA in grading, all students should create a web page portfolio that will contain links to their homework and labs. The portfolio will be password protected such that only the student and the TA know the passwords to access the portfolio.

    • Create a web-accessible directory for CS360 in your public_html directory, ie. public_html/CS360
    • Create your personal page (index.html) in your public_html/CS360 directory containing at least the following information.
    • 5% Extra Credit: Make your CSS and HTML/XHTML standards-compliant.
        • Every version of HTML and CSS have been precisely specified by the W3C. Writing your HTML and CSS in compliance with these specifications helps browsers correctly render your webpages, and has other benefits as well.  The W3C supplies automatic validators for CSS and HTML.  You will want to perform this step before adding authentication to your webpage so that the W3C validators can access your page online.

          Resources and Steps

          1. Add a doctype declaration to the top of your HTML page (as the first line in your index.html file).  You may choose to do HTML 4.01 Transitional, HTML 4.01 Strict, XHTML 1.0 Transitional, XHTML 1.0 Strict, or HTML5.  However, if you choose XHTML 1.0 Strict or HTML5 you will get an additional 1% extra credit on top of the normal 5%.  The doctype declaration aids the client’s browser in choosing how to render your page.  If you are doing HTML5, you should simply use “<!DOCTYPE html>” as your doctype declaration.
          2. Take some time to learn what types of tags are allowed by your chosen specification and where those tags are allowed.  Make your webpage compliant with the specification.
          3. Take some time to learn about a CSS specification.  Make sure that your CSS is compliant with the specification.
          4. Validate your HTML/XHTML using the W3C Markup validation Service.  It will inform you of any warnings and errors and the lines on which they were encountered.  If you are unsure how to deal with a particular warning or error,  Google it and you will find plenty of information.  The TA will also be available to help if you have trouble isolating a

            particular problem (Mark O’Neill, mto – at – byu – dot – edu).  The service will display a green bar with the text “This document was successfully checked as [doctype]” (where doctype is the HTML/XHTML version you added to your page in step 1) when your markup passes validation.

          5. Validate your CSS file using the The W3C CSS Validation Service.  The service will display a green bar with the text “Congratulations! No Error Found.” when your CSS passes validation.
          6. Keep this practice up for the rest of your web career and be proud to be a standards-compliant developer!

    • Protect your CS360 directory using basic apache authentication
      • Change directory so you are in your public_html/CS360 directory
      • Create a .htaccess file containing the following lines
        AuthType Basic
        AuthName "Password Required"
        AuthUserFile "/fullpath/to/your/homedirectory/.htpasswd"
        Require valid-user
      • Edit the .htaccess file to reflect your home directory path
      • Create a .htpasswd file

        in your home directory using the command htpasswd. For help doing this see the man page for htpasswd (man htpasswd) ( /usr/bin/htpasswd -c /fullpath/to/your/homedirectory/.htpasswd homedirectory).

      • Add the following line to your .htpasswd file
        	cs360ta:dS67n6TzX04.A
      • Test the authentication to make sure it works

      Resources

      Passoff

      Complete the following form and submit it with the URL to your web page.

      Passoff Level Behavior Points
      Minimal Passoff

      Create a class web page.

      70%

      Basic Passoff

      Create the class web page and add access control.

      85%

      Perfect Passoff

      Add the TA username and password to allow TA access to your page.

      100%

      Celestial Passoff

      Ensure that the CSS used in your webpage is standards-compliant (any version of CSS is accepted). Ensure that the HTML markup of your webpage is properly identified to browsers and that it is standards-compliant.

      105%

    Leave a reply

    You must be logged in to post a comment.