Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think your question is confusing for most of others here. I see a lot of irrelevant answers coming up with "MVC" while you actually mean "separate content from style" instead of "separate data from design" which could be incorrectly interpreted as "separate model from view". The first part of your question indeed gives the impression that you're looking for MVC, but the second part of your question and the tags used made me realize that you actually didn't mean that.</p> <p>The answer is simple: just don't use <em>inline</em> CSS (such as <code>style="color:red"</code>) but have it in an entirely <strong>separate</strong> stylesheet which you include in the HTML <code>head</code>. Give the HTML elements sensible ID's and/or classnames. You can let the CSS hook on that. Also use HTML wisely and semantically. Separate the content in positionable block elements. Don't use tables for layout.</p> <p>Certainly checkout the <a href="http://www.csszengarden.com/" rel="nofollow noreferrer">CSS Zen Garden</a> as someone already mentioned before me. It uses exactly the same content (HTML code) throughout many different styles which you can select from a menu.</p> <p>For more interesting blogs/links you may find those Google searches useful:</p> <ul> <li><a href="http://www.google.com/search?q=html+semantics" rel="nofollow noreferrer">html semantics</a></li> <li><a href="http://www.google.com/search?q=css+naming+conventions" rel="nofollow noreferrer">css naming conventions</a></li> </ul> <p>The same story also applies on JavaScript by the way. Do not use <em>inline</em> JS code, but just have it in an entirely <strong>separate</strong> file and make use of <a href="http://en.wikipedia.org/wiki/Unobtrusive_JavaScript" rel="nofollow noreferrer">unobtrusive Javascript</a> as many as possible. I.e. your website should still be useable without Javascript. The <a href="http://jquery.com" rel="nofollow noreferrer">jQuery</a> library is a perfect choice for that. Its selectors are also based on having sensible ID's and/or classnames.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload