For this week the focus is on cleaning up the files so it doesn’t contain unnecessary code to make the files smaller in size. It also makes the code cleaner to look at and even easier to follow. For example, cleaning up and having less div tags in html and even ids makes it easier to locate where things begin and end.
I selected the news.html (which will upload later on) and cleaned up as much of the ids in the div tags as I can. I only ran into some trouble with a part where I took out an id and the content disappeared from the site. Otherwise I managed to clean up most of the ids and combined some class into one div tag instead of separate div tags for each class. For example
Original
<div class=”content”>
<div class=”content-title”>
Cleaned
<div class=”content” class=”content-title”>
Overall, this week’s progress is better than last week; unfortunately last week I was too ill to have done as much as I wanted. As of now with the cleaned up html file I will move on to making the page be responsive but still retain organize contents.
No comments:
Post a Comment