Using an External CSS
This week's project is the most complex thus far. We were tasked with building a web resume that includes our picture and describing our education and work experiences. For this project, we are using HTML with an external CSS, that is, we are constructing two documents, one containing the texts for the web page (the HTML) and one containing instructions on how the web page should look (the CSS). Because styling a website can often involve a ton of code (as I have discovered this week), having the CSS in a separate file can reduce a lot of clutter in the main HTML code.
Building the HTML file is the easy part. By this point, I am confident enough with using HTML tags that I can plug in my information from my resume fairly quickly. The challenging part, though, is the external CSS file. I had to try a lot of different things to get the web page to look the way I want. For example, I wanted the paragraphs beneath each entry in the Education and Experience section to be indented. However, I did not want the last sentence (the part that includes a link to my email) indented like the other paragraphs. To solve this issue, I created a class called .indented and applied it to the paragraphs that require indentation. I also wrapped the last sentence in a footer tag and applied some padding so that it looks more separated from the rest of the texts.
Another issue I ran into was that at one point, the changes I made to the CSS did not reflect on the web page. I was trying to change color of a heading, but no matter how many times I changed the color, the color on the web page remained the same. I later discovered that this was simply due to an omission of a semicolon at the end of the color property. Once the semicolon is back in place, everything was working again. This made me realize that in coding, even the smallest of mistakes and/or omissions can have great impact. One would have to be very thorough and pay attention to every detail.
This project helped me to build on my HTML skills even further, as this project required the application of everything I have learned thus far (HTML tags, page layout, formatting texts, etc.). I had to review a lot of information from tutorials just to remember how to use each CSS property correctly. That missing semicolon was also a valuable lesson in paying attention to every small detail and not rushing over things.
Comments
Post a Comment