<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RudiBela Business Solutions &#187; CSS</title>
	<atom:link href="http://www.rudibela.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rudibela.com</link>
	<description>Business Intelligence Solutions</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Best practices</title>
		<link>http://www.rudibela.com/web-development/best-practices/</link>
		<comments>http://www.rudibela.com/web-development/best-practices/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 00:59:41 +0000</pubDate>
		<dc:creator>Sasa Bogdanovic</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[semantically correct code]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.rudibela.com/?p=54</guid>
		<description><![CDATA[Best practices for writing semantically correct code for web require that content, presentation and behaviour are separated by putting (X)HTML, CSS and JavaScript code in separate files. &#8230; <a href="http://www.rudibela.com/web-development/best-practices/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="fullwidth">
Before writing <a href="http://www.rudibela.com/web-development/semantically-correct-code/" title="Semantically correct code">semantically correct (X)HTML and CSS code</a>, you should think of separation of content, presentation and behavior. Reasons for this are numerous. Although it is possible to have all (X)HTML, CSS and JavaScript code in every web page you are serving, long time ago it has been adopted as best practice to separate these.<br />
<span id="more-54"></span><br />
<div id="attachment_56" class="wp-caption alignleft" style="width: 170px"><a href="http://www.flickr.com/photos/julietteculver/4109536867/"><img src="http://www.rudibela.com/wp-content/uploads/2010/02/separation-of-content-presentation-behavior.jpg" alt="separation of content presentation and behavior" title="separation of content presentation and behavior" width="160" height="240" class="size-full wp-image-56" /></a><p class="wp-caption-text">Best practices</p></div>While HTML is necessary in order to have any content of the page, CSS is used to style the content and present it in a shape different from how the browser shows it by default. Without JavaScript all you have is a static web page in which there is no interaction between the user and the page.</p>
<p>The separation should be done in the following way</p>
<ul>
<li>content is in the main .html file</li>
<li>presentation is in external .css file</li>
<li>interaction is in external .js file</li>
</ul>
<p>External files are referenced from within the main .html file.</p>
<p>As main reasons for separation I list the following:</p>
<ul>
<li>Performance &#8211; external .css and .js files will be cached by the browser after the first load, dramatically decreasing loading times of subsequent pages where those files are referenced, thus improving the user experience.</li>
<li>Management &#8211; you know where to look for and place code, each layer for its own purpose.</li>
<li>Maintenance &#8211; all the code is in one central location, applying all presentation and interaction code to all the web pages within a web site. If you need to change anything in the code, it is done in one central place.</li>
<li>Reusability &#8211; the css and js code can be easily referenced and reused across the entire web site.</li>
</ul>
<p>Without separation, the logic of css and js files would need to be rewritten in each and every page, hence multiplying work by many times. Any change in such a case becomes a nightmare.</p>
<p>To get a picture of what I was talking about, there is no better example that <a href="http://www.csszengarden.com" title="CSS Zen Garden">CSS Zen Garden</a>, a web site where different designs for the same content are presented. This is done only by modifying the style sheets in .css files.</p>
<h2>What&#8217;s in it for me?</h2>
<p>If you are Internet user, you will have better experience as the pages would load much faster compared to the case without separation.</p>
<p>If you are a web developer, you have the chance to keep your sanity.</p>
<p>If you are a business owner, by making sure that your website is running with content, presentation and interaction separated ensures no leaking of bandwidth from the web server, less burden on the server, more satisfied customers (visitors of the website), easier management and maintenance of the website. All in all, it means higher return on investment (ROI).</p>
<p>If you are interested in further reading about separation of HTML/XHTML, CSS and JavaScript, explore the following articles:</p>
<p><a href="http://webdesign.about.com/od/intermediatetutorials/a/aa010707.htm">The Three Layers of Web Design</a><br />
<a href="http://www.digital-web.com/articles/separating_behavior_and_structure_2">Separating behavior and structure</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rudibela.com/web-development/best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Semantically Correct Code</title>
		<link>http://www.rudibela.com/web-development/semantically-correct-code/</link>
		<comments>http://www.rudibela.com/web-development/semantically-correct-code/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 00:40:34 +0000</pubDate>
		<dc:creator>Sasa Bogdanovic</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[semantically correct code]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.rudibela.com/?p=49</guid>
		<description><![CDATA[Writing semantically correct code is nothing more than common sense. All that there is about HTML code semantics is that each element in a web page should have an HTML element corresponding to its meaning that would correspond to its content and purpose. &#8230; <a href="http://www.rudibela.com/web-development/semantically-correct-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="fullwidth">
Quite often semantic aspect of web design and development is neglected, either because of not even thinking about it or because of wrong impression that there is no time to cater for semantics when working under pressure of meeting the project deadlines. In either case, it is not an excuse. Time has come to change the mindset.<br />
<div id="attachment_51" class="wp-caption alignleft" style="width: 238px"><a href="http://www.flickr.com/photos/dullhunk/639163558/"><img src="http://www.rudibela.com/wp-content/uploads/2010/02/semantically-correct-code.jpg" alt="semantically-correct-code" title="semantically correct code" width="228" height="157" class="size-full wp-image-51" /></a><p class="wp-caption-text">Semantically correct code</p></div>Writing semantically correct code is nothing more than common sense. All that there is about HTML code semantics is that each element in a web page should have an HTML element corresponding to its meaning that would correspond to its content and purpose.<br />
<span id="more-49"></span><br />
The recommendations for writing semantically rich code are quite easy to follow. For example, different types of headings in the page context should be wrapped within header HTML tags, &lt;h1&gt; &#8211; &lt;h6&gt;. For paragraphs of text, paragraph element &lt;p&gt; should be used to wrap its content. If you are creating any kind of list items, list tags (&lt;ul&gt;, &lt;ol&gt;, &lt;li&gt;, etc) should be used, and so on. Quite easy, isn&#8217;t it?</p>
<p>To picture this, see the two examples of HTML code below.</p>
<p>An example of semantically poor code:</p>
<p><code>&lt;div class="header"&gt;This is the title&lt;/div&gt;</code></p>
<p><code>&lt;div class="paragraph"&gt;</code><br />
<code>This is the smart paragraph saying<br />
it is a paragraph within div tag<br />
which is semantically poor.</code><br />
<code>&lt;/div&gt;</code></p>
<p><code>&lt;a href="/links/link1" class="menu"&gt;Link 1&lt;/a&gt;</code><br />
<code>&lt;a href="/links/link2" class="menu"&gt;Link 2&lt;/a&gt;</code><br />
<code>&lt;a href="/links/link3" class="menu"&gt;Link 3&lt;/a&gt;</code></p>
<p>An example of semantically rich code:</p>
<p><code>&lt;h1&gt;This is the title&lt;/h1&gt;</code><br />
<code>&lt;p&gt;</code></p>
<p><code>This is the smart paragraph saying<br />
it is a paragraph within p tag,<br />
which is semantically rich.</code></p>
<p><code>&lt;/p&gt;</code><br />
<code>&lt;ul&gt;</code></p>
<p><code>&lt;li&gt;&lt;a href="/links/link1"&gt;Link 1&lt;/a&lt;/li&gt;</code><br />
<code>&lt;li&gt;&lt;a href="/links/link2"&gt;Link 2&lt;/a&lt;/li&gt;</code><br />
<code>&lt;li&gt;&lt;a href="/links/link3"&gt;Link 3&lt;/a&lt;/li&gt;</code></p>
<p><code>&lt;/ul&gt;</code></p>
<p>Even in this simple example it is obvious that the latter case is more readable, meaning it will be much easier to maintain, style, upgrade, whatever&#8230; Needless to say search engine optimization of the page will benefit as well since semantic code will help search engines understand the pages better and index your site optimally.</p>
<p>If you are an old-school web developer, you probably wander where are the tables. Well I got news for you. Tables should not be used for laying out header, footer, sidebar and so on. If you need to present some data in a tabular format, that&#8217;s where tables come in.</p>
<p>Finally, your semantically coded page definitely will not appear the same across different browsers. For example, in Internet Explorer 6 &lt;h1&gt; header element will appear bigger than in Firefox or Internet Explorer 7 will show text within &lt;p&gt; tags look like it is bolded. This is not due to the semantics, but because of different implementations of HTML elements in browsers. The way to fix this is not to change the code, but to use CSS to accomplish a design that will show the same in any browser.</p>
<h2>What&#8217;s in it for me?</h2>
<p>If are an Internet user, you benefit by visiting a website which will not limit you which browser to use.</p>
<p>If you are the web designer and/or developer, writing semantic code will make your life much easier and work much more interesting. It is really much easier when presentation is logically structured and you can understand and visualize the structure of the page even without any styling but just by laying out the markup.</p>
<p>If you are a business owner, getting a semantically written website ensures a solution which will be</p>
<ul>
<li> easier to manage and maintain</li>
<li> cheaper in long terms</li>
<li> independent of the developer who created it</li>
<li> more search engine friendly, thus bringing in more visitors, potentially turning them into customers.</li>
</ul>
<p>In any case, if you are interested in further reading on this topic, here are some good articles:</p>
<p><a href="http://www.informit.com/articles/printerfriendly.asp?p=369225&amp;rl=1">The Meaning of Semantics</a><br />
<a href="http://www.thefutureoftheweb.com/blog/writing-semantic-html">Writing Semantic HTML</a><br />
<a href="http://fadtastic.net/2006/10/19/the-semantic-code/">The semantic Code</a><br />
<a href="http://www.boagworld.com/archives/2005/11/semantic_code_what_why_how.html">Semantic code: What? Why? How?</a><br />
<a href="http://brainstormsandraves.com/articles/semantics/structure/">Semantics, HTML, XHTML, and Structure</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rudibela.com/web-development/semantically-correct-code/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Valid (X)HTML and CSS code</title>
		<link>http://www.rudibela.com/web-development/valid-xhtml-and-css-code/</link>
		<comments>http://www.rudibela.com/web-development/valid-xhtml-and-css-code/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 00:27:51 +0000</pubDate>
		<dc:creator>Sasa Bogdanovic</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[semantically correct code]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.rudibela.com/?p=45</guid>
		<description><![CDATA[When creating a new web page, the first thing to do is to define a <em>doctype</em>. What is a doctype? It is a declaration of layout mode that is activated within the browser when it renders the page. Therefore, having a valid HTML/XHTML and CSS code means that the way web page is written complies with layout mode declared in doctype. In other words, by declaring a doctype and writing compliant (X)HTML and CSS code means that you create a page that you say you do. If that is the case, all browsers will render the page in the same way. &#8230; <a href="http://www.rudibela.com/web-development/valid-xhtml-and-css-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="fullwidth">
When creating a new web page, the first thing to do is to define a <em>doctype</em>. What is a doctype? It is a declaration of layout mode that is activated within the browser when it renders the page. Therefore, having a valid HTML/XHTML and CSS code means that the way web page is written complies with layout mode declared in doctype. In other words, by declaring a doctype and writing compliant (X)HTML and CSS code means that you create a page that you say you do. If that is the case, all browsers will render the page in the same way.</p>
<p>On the other side, if web page does not validate against the declared doctype, the way it will be displayed in any browser can be unpredictable as it will then depend on error-handling mechanisms which vary a lot from browser to browser.</p>
<p>It is like having an ID card, but being someone else. Yes, it is that bad.<span id="more-45"></span><br />
There are a number of online services and extensions for different web browser that perform validation. Once your web page is ready, before putting it online, it should be validated. Some of the most popular ones are:</p>
<ul>
<li><a href="http://validator.w3.org/">W3C Markup Validation Service</a></li>
<li><a href="http://jigsaw.w3.org/css-validator/">W3C CSS Validation Service</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2318">Firefox Total Validator add-on</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;displaylang=en">Internet Explorer Developer Toolbar</a></li>
</ul>
<p>It is very probable that validation will reveal errors and highlight potential layout problems the developer did not expect to find. Once it becomes a habit, producing valid code leads to a faster development and is a foundation for easy management and maintenance.</p>
<h2>What&#8217;s in it for me?</h2>
<p>If you are just surfing the internet, go ahead and use these tools. It is good to know where you are.</p>
<p>If you are a web developer and you want to know more about doctypes, you might get more details by following :</p>
<ul>
<li><a href="http://www.alistapart.com/articles/doctype">Fix Your Site With the Right DOCTYPE!</a></li>
<li><a href="http://hsivonen.iki.fi/doctype/">Activating the Right Layout Mode Using the Doctype Declaration</a></li>
<li><a href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">W3C Recommended list of DTDs</a></li>
</ul>
<p>If you are a business owner thinking about hiring a web development company to make or redesign your website, do a research before you make an agreement. Visit the websites of your potential service providers. Normally you will find <a href="http://www.rudibela.com">web design portfolios</a>. Do your homework. Visit the websites they have created and make sure they are HTML/XHTML and CSS valid. Consider hiring only those that are compliant. Believe me, it will save you a lot of trouble (time + money) in future.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rudibela.com/web-development/valid-xhtml-and-css-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Standards</title>
		<link>http://www.rudibela.com/web-development/web-standards/</link>
		<comments>http://www.rudibela.com/web-development/web-standards/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 00:18:38 +0000</pubDate>
		<dc:creator>Sasa Bogdanovic</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[semantically correct code]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.rudibela.com/?p=32</guid>
		<description><![CDATA[Introduction web standards and why they are important to web users, developers and business owners. &#8230; <a href="http://www.rudibela.com/web-development/web-standards/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="fullwidth">
If you are a tech savvy user and you surf the Internet following web design and development related topics, you must have heard about Web Standards.</p>
<p>So what is all the fuss about? In short, it is a set of recommendations and guidelines put by <a title="World Wide Web Consortium" href="http://www.w3.org">W3C</a> organization to browser vendors aiming to get a browser independent process of web design and development and user experience.<br />
<span id="more-32"></span></p>
<div id="attachment_39" class="wp-caption alignleft" style="width: 220px"><img class="size-full wp-image-39" title="Designing with web standards" src="http://www.rudibela.com/wp-content/uploads/2010/02/dwws.png" alt="Designing with web standards" width="210" height="100" /><p class="wp-caption-text">Designing with web standards</p></div>
<p>One of the founders of Web Standards movement is <a title="Jeffrey Zeldman" rel="nofollow" href="http://www.zeldman.com">Jeffrey Zeldman</a>. His famous book <a href="http://www.amazon.com/gp/product/0321616952?ie=UTF8&amp;tag=carefitncarec-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321616952">Designing with Web Standards</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=carefitncarec-20&amp;l=as2&amp;o=1&amp;a=0321616952" border="0" alt="" width="1" height="1" /> has recently been released in its 3rd Edition. It played a big role in putting web standards in focus of web development community.</p>
<h2>Browser wars</h2>
<p>Microsoft and Netscape were fighting for the browser market share by introducing more and more proprietary features of their products, Internet Explorer and Netscape Navigator, thus almost making half of the web inaccessible for users, depending on the browser they were using.</p>
<p>W3C brings together the architects of major modern browsers, as well as independent web designers and developers renowned for their web standards advocacy. Each time a new set of recommendations is issued, it is a result of a hard work done by people involved to reach consensus. This is not always done at the pace the web designers&#8217; and developers&#8217; community expects, so a number of other organizations have been founded trying to make themselves influential enough to drive browser vendors in the same direction. Some of them are <a title="What Working Group" rel="nofollow" href="http://www.whatwg.org/">What WG</a> and <a title="WSG (Web Standards Group)" rel="nofollow" href="http://webstandardsgroup.org/">WSG (Web Standards Group)</a></p>
<p>In general, Web Standards  apply to:</p>
<ul>
<li>Valid HTML/XHTML and CSS code</li>
<li>Semantically correct code</li>
<li>Separation of content (HTML/XHTML), presentation (CSS) and behavior (JavaScript)</li>
<li>Accessibility</li>
</ul>
<p>I will cover each area in more details in my future posts, so stay tuned.</p>
<h2>What&#8217;s in it for me?</h2>
<p>If you are an Internet consumer, then for you this issue is probably transparent and maybe this is the first time you meet Web Standards. Well, you should care. Internet belongs to you! Just like any tangible product, if it is not usable for the end user, it better not be.</p>
<p>If you are a web developer and/or designer, you should be aware what Web Standards are. If you are not, maybe it is time to look for another job where they will educate you? Or even better, you can <a title="Subscribe to RSS feed" href="http://www.rudibela.com/feed">regularly read our blog</a>.<br />
If you are a business owner and your website is an important part of your operations and branding, you should care too! Your standards compliant website will be easier to maintain and manage. It will have increased usability, making your business more exposed. It will be not only user friendly but it will also be more search engine friendly. If the users feel comfortable while shopping on your site, they will come again. All in all, your return on investment will be increased. Which is why you are doing business anyway.
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rudibela.com/web-development/web-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

