Ideally, web designers should strive to write code that is valid HTML and CSS. In doing so it makes it easier to correct problems, and edit pages.
HTML and CSS are the fundamental technologies for building Web pages: HTML (html and xhtml) for structure, CSS for style and layout, including WebFonts.
By separating the presentation style of documents from the content of documents, CSS simplifies Web authoring and site maintenance.
For example, having a separate CSS file allows for aesthetic changes to be made to the entire site rather than to just a single page.
If CSS rules are included within a single HTML page, changes would have to be made to each and every page that used the element in question. The reasoning is that HTML should only be used for raw content and CSS be used to manipulate the content for aesthetic style.
Best Practices |