![]() |
|
|
#11 (permalink) |
|
Foundation Editor
Join Date: Apr 2008
Location: Kent, UK
Posts: 1,600
|
Your Q's:
xHTML & HTML These are very similar codes, the xHTML version is slightly newer and slightly better organised. For many purposes there is no difference. They cannot be mixed though. Standards Indeed there are standards, without them things would be impossible as we're talking about a code language. The WorldWide Web Consortium (W3 Org) set the rules for web code. It's like a language, if every 3rd word is from another language, the spelling is wrong or the grammar is wrong - then it's faulty and won't work 100%. Standards compliance means using the language correctly. It's a big subject so maybe best to refer you to some pages of background, and also how to start on code validation if required - code validation . You could indeed fix any faulty code by reference to the W3C validator at - http://validator.w3.org ...but there are two practical issues here: (1) if you're using a web author and it outputs faulty code, then you're using the wrong web author - ditch it. If it can't write valid code when its main purpose is to write valid code - then what use is it? And (2), code validation is not for beginners, it's for coders or at least those who are very confident with HTML. Look at it this way, writing valid code defeats 75% of web developers, so it's not really for those just starting out. (About 75% of the brand new professional websites I'm called in to work on have faulty code, sometimes with over 100 errors per page.) Security One thing that valid code has no relation to is security. That depends mainly on the standard of web hosting, the main web application you're using, and how well you maintain that application. In other words you need a good-quality webhost that takes care of business; a CMS or whatever that is not vulnerable and that you have not added insecure plugins to that are able to be exploited; and you need to update and patch everything on your server that you have access to, on a regular basis. Another thing is that flat sites (basic HTML websites) are inherently more secure than CMS, ecommerce and especially forums. However, HTML-page sites are only useful for very small websites now. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|