Tuesday, March 11, 2008

HTML and XHTML recipe assignment

Our assignment was to take a recipe and create both HTML and XHTML files. They can be viewed at http://people.rit.edu/~say1534/rit737/htmlrecipe.html and http://people.rit.edu/~say1534/rit737/xhtmlrecipe.xhtml.  

Through CSS, I changed the text and background colors, and font. I used an unordered list for the list of ingredients, and created a paragraph out of the instructions. 

As a warm-up exercise, I found this recipe assignment to be helpful.  I haven't done any HTML since last year in IMM, so I found myself looking up some things.  One of which was lists, which we had not done before. 

When I tried to validate my files, I did not have a problem with the XHTML file, since I did that one last, but I did have some problems remembering things for HTML (I confused some things dealing with differences between HTML and XHTML, for example
tags. In HTML, I found that I needed to close tags in different ways, mostly because it does not include a slash at the end of elements, like XHTML needs.  I had almost forgotten to include the slash at the end of the opening tags, such as the initial meta tag. 

CSS was also difficult for me to remember.  I had to look a few things up to help me remember, such as adding color to the background.  The uploaded files on my gibson account include CSS.

No comments: