Look Through My Html Files?
- Jontelover
-
Jontelover
- Member since: Apr. 26, 2013
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
Hello,
I have just made a simple and short website, for a school project so I won't upload it to a website. Here is the website: http://speedy.sh/STV2g/ArsenalGunners.rar
Anyone wanna look through the HTML files and check so I have used the elements correctly and structured it correctly?
Thanks in advance!
- Diki
-
Diki
- Member since: Jan. 31, 2004
- Offline.
-
- Forum Stats
- Moderator
- Level 13
- Programmer
I was pleasantly surprised to see you using an HTML5 doctype and that your HTML isn't div-city. Kudos!
Noticed a couple things though:
- You forgot your opening <html> tag.
- You should be using something like Modernizr so your HTML5 will work in legacy browsers.
- You should also use something like Normalize.css to ensure that all browsers have the same CSS defaults.
- You're writing XHTML in your <meta>, <link>, <img>, and <br> containers. Having the forward slash before the closing brace isn't necessary.
- You're hosting jQuery yourself. It's generally a better idea to use a CDN (I use Google's) to fetch jQuery. You can ignore this point if the site isn't being hosted on a server.
- You're using relative paths for your images and links. These do work, but if you ever move the HTML files around you'll need to change the path to accommodate, so I'd recommend using absolute paths. Like the previous point you can ignore this if you're not hosting it on a server (absolute paths won't work otherwise).
Other than that it looks good to me.
- Filarius
-
Filarius
- Member since: Aug. 16, 2005
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
At 5/23/13 05:45 PM, Diki wrote: - You're using relative paths for your images and links. These do work, but if you ever move the HTML files around you'll need to change the path to accommodate, so I'd recommend using absolute paths. Like the previous point you can ignore this if you're not hosting it on a server (absolute paths won't work otherwise).
Also you can ignore this if you think to change HTML files location (within directory, relative to images and other files used in HTML), or you will have big pain if you will try to open your HTML from another location (whatever another folder, PC, or server).
Advise to use absolute paths is not so good in most situations.
<== This russian guy always write with mistakes.
- Filarius
-
Filarius
- Member since: Aug. 16, 2005
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
At 5/24/13 05:02 AM, Filarius wrote:
Also you can ignore this if you think to change HTML files location (within directory, relative to images and other files used in HTML), or you will have big pain if you will try to open your HTML from another location (whatever another folder, PC, or server).
Advise to use absolute paths is not so good in most situations.
Dumn, OK.
If you will move all project (html, images and etc) as "box", in way what makes all files be at same place (relatively) - so relative links is best.
Absolute links good only if you will not ever move your project files ever.
Also absolute link will not allow another people to check your work by downloading archive of it.
And if you will move so HTML file - ok, it will have valide links to images, and other files, but other HTML files will have invalide links to that moved file.
So there will be always problem with link on moving files.
<== This russian guy always write with mistakes.
- sharpnova
-
sharpnova
- Member since: Feb. 19, 2005
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
At 5/24/13 05:09 AM, Filarius wrote:At 5/24/13 05:02 AM, Filarius wrote:Also you can ignore this if you think to change HTML files location (within directory, relative to images and other files used in HTML), or you will have big pain if you will try to open your HTML from another location (whatever another folder, PC, or server).Dumn, OK.
Advise to use absolute paths is not so good in most situations.
If you will move all project (html, images and etc) as "box", in way what makes all files be at same place (relatively) - so relative links is best.
Absolute links good only if you will not ever move your project files ever.
Also absolute link will not allow another people to check your work by downloading archive of it.
And if you will move so HTML file - ok, it will have valide links to images, and other files, but other HTML files will have invalide links to that moved file.
So there will be always problem with link on moving files.
I have to agree here. Though I agreed with all of Diki's other points, relative links are generally better.
The problem he mentioned (moving stuff around) isn't solved by using absolute links)
But another problem (moving *everything* to for example another domain or subdomain folder etc.) is solved perfectly by using relative links.
Stick to relative links and put all his other suggestions into practice.
= + ^ e * i pi 1 0

