Common Issues
Learning Log - Common Issues
- Weekly tasks had validation errors
- Weekly write ups did not show understanding
- Don't write things like "This week I learnt HTML, attributes and elements". This does not show any understanding.
- Instead, you need to cover:
- What is HTML and what is it used for
- What are elements and how are they used
- What is the purpose of attributes
- What is HTML and what is it used for
- Not all weekly tasks were completed to specification
- Links to tasks were broken
Note: A learning log won't be required for assessment2
Main Website - Common Issues
Using empty elements to create space
It's often tempting to use empty HTML elements in order to create space within an HTML document.
Consider the following incorrect example:
...
<body>
<h1> This is a heading </h1>
<!-- incorrectly using empty <p> tags in order to create space -->
<p></p>
<p></p>
<p> This is my paragraph </p>
</body>
...
In the above example we are using empty <p> elements in order to create space. This is very bad practice, as adding unnecessary elements makes HTML pages unwieldy and hard to maintain. Furthermore, we can no longer fully control the look and feel of our page using our external style sheet.
Rather than using empty elements we should instead use CSS to create space. Within our css file we could add the following:
h1 {
margin-bottom: 50 px;
}
Not changing the display style of the image on the front page
One of the tasks to be completed on index.html was to insert and image such that it lives on it's own line. Many of you wrapped the <img> element in a <div> or a <p> to achieve this. This is bad as we're adding unnecessary elements.
The correct solution was to display the layout of the image from block to inline using css:
html
<img class="my_image" src="img/image1">
css
.my_image{
display:block
}
Validation errors
There's really no excuse here. For assessment2 you should all make sure that your HTML is 100% valid using the W3C validator.
Invalid Links
For assessment2 make sure you test you website on the edward2 server, ensuring that all the links and images work. Many of you constructed links that would only work on your local computer:
Good
<a href="session1/index.html"> Index Page </a>
- Use
/for the path - Link relative to the the location
- No spaces in the folder or file name
Bad
<a href="C:\mydocument\session1\index file.html"> Index Page </a>
- An absolute reference to the c drive on my computer
\used- Space in the file name
Failure to include a unique meta description
Each page should have a meta description within the <head>. It's a vital element for SEO:
<meta type = "description" content="This is a meta description ">
Commenting
Be sure to use intuitive commenting for assesment2.
As a minimum you should comment at:
- The end of each div:
<div id="myDiv">
...
</div> <!-- [END]#myDiv -->
- At the top of each page:
<!--
name: Joe Appleton
version: 1
date: 11/01/2016
-->
Failure to follow the specification
Many of you lost easy marks for simply not following the specification. Make sure you read assessment2 carefully, covering all the main points.
No website uploaded to edward2
We were tolerant of people not uploading to edward2 for this assessment. For assessment2 please ensure that an unzipped version of your website is uploaded to edward2.