This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
designers:philosophy [2013/10/24 19:15] jonyo [Do Not Restrict Functionality] |
designers:philosophy [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 19: | Line 19: | ||
* Keep your site up to date with every release. When allowing multiple versions to pass between updates, the more versions are released, the more changes you will have to make at once. It's generally much easier to apply smaller changes more often than, say, trying to apply changes added over an entire year, from 2-3 new feature releases or more, all at once. < | * Keep your site up to date with every release. When allowing multiple versions to pass between updates, the more versions are released, the more changes you will have to make at once. It's generally much easier to apply smaller changes more often than, say, trying to apply changes added over an entire year, from 2-3 new feature releases or more, all at once. < | ||
* Apply changes to a test site first. That way, you can make any required design changes on the test site so that your " | * Apply changes to a test site first. That way, you can make any required design changes on the test site so that your " | ||
+ | * Note that this isn't something you will be needing every other update. | ||
===== Responsive Web Design VS Separate Mobile Design ===== | ===== Responsive Web Design VS Separate Mobile Design ===== | ||
Line 38: | Line 39: | ||
Rather than try to " | Rather than try to " | ||
- | ===== RWD Principals We Follow | + | ===== RWD in Layman' |
- | First, note that these are principals we follow | + | Way back, more than a decade ago now, when CSS 1 was first coming out and started to get used, the big " |
+ | Now enters Responsive Web Design (RWD). | ||
+ | ===== RWD Principals We Follow ===== | ||
+ | |||
+ | First, note that these are principals we follow for the default design, and tend to be considered "best practice" | ||
==== Do Not Restrict Functionality ==== | ==== Do Not Restrict Functionality ==== | ||
Line 59: | Line 64: | ||
And most importantly, | And most importantly, | ||
+ | |||
+ | ==== Semantic Standards Compliant HTML ==== | ||
+ | |||
+ | All HTML in the default design, is fully W3C compliant HTML 5. We also make the HTML as " | ||
+ | |||
+ | We avoid solutions that require complicated HTML markup that does not make much sense when you look at it. | ||
+ | |||
+ | When it comes to images serving as links, we avoid making those images a background image defined in CSS, instead having the image tag directly in the HTML. There are times when this may still make more sense for optimization reasons, but is avoided for the most part. Doing so misses out on an opportunity to use the alt attribute to let search engines know what the image is for (and humans as well). | ||
+ | |||
+ | === Exceptions that Prove the Rule === | ||
+ | |||
+ | If you plug the demo into the W3C validator at http:// | ||
+ | |||
+ | <code html>< | ||
+ | |||
+ | This is the one exception, technically it is not valid HTML 5. However, the line is needed to make sure Internet Explorer versions 8 through 10 display the page as best as they can. You can see more information about it at [[startup_tutorial_and_checklist: | ||
+ | ==== Less (HTML) is More ==== | ||
+ | |||
+ | This one goes hand in hand with [[#Semantic Standards Compliant HTML]] - we try to use as " | ||
+ | |||
+ | * Easier for **humans** to read and understand the HTML markup. | ||
+ | * In theory, should be easier for browsers to interpret the markup, and therefor speed the page up. | ||
+ | * Less HTML means smaller download, and faster loading page. | ||
+ | |||
+ | This means we avoid complicated HTML markup. | ||
+ | |||
+ | This is one common way to represent navigation links in HTML 5, we do NOT do it this way anymore as of version 7.3: | ||
+ | < | ||
+ | <nav> | ||
+ | <ul> | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Note that this is simplified to just the " | ||
+ | |||
+ | That way is indeed very semantic, first you know these are navigation links because of the <nav> tag. And you know it is a list of things by the <ul> and <li> tags. But it does use a lot of HTML. We took that, and basically removed the list tags, since when you look at it, with the <nav> tags alone, it should already be pretty obvious that it is a list of navigation links. | ||
+ | |||
+ | The reduced version that we use in the default design uses this format: | ||
+ | <code html>< | ||
+ | <a href="#"> | ||
+ | <a href="#"> | ||
+ | </ | ||
===== Progressive Enhancement ===== | ===== Progressive Enhancement ===== | ||