<?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>Dreamweaver, Flash, Photoshop, CSS, Fireworks and HTML Tips &#38; Tricks &#187; html</title>
	<atom:link href="http://www.livetrainingsession.com/tips/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.livetrainingsession.com/tips</link>
	<description>Get Quick Tips &#38; Tricks on Web Applications Development Tools</description>
	<lastBuildDate>Thu, 29 Jul 2010 21:16:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How To Make IE6 Play Nice with Other Web Browsers</title>
		<link>http://www.livetrainingsession.com/tips/2010/03/how-to-make-ie6-play-nice-with-other-web-browsers/</link>
		<comments>http://www.livetrainingsession.com/tips/2010/03/how-to-make-ie6-play-nice-with-other-web-browsers/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 17:40:22 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[conditional]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.livetrainingsession.com/tips/?p=272</guid>
		<description><![CDATA[The constant web browsers war is more about the chaos and the lack of consistency across the board in implementing the recommendations of the W3C (Worldwide Web Consortium) regarding HTML and CSS. That leaves web developers in the middle of a land mines field. Those pour souls have to gather all the courage it takes [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.livetrainingsession.com/tips/wp-content/uploads/2010/03/web_browsers1.jpg"><img class="alignleft size-full wp-image-284" style="margin: 0 10px 10px 0;" title="Most Popular Web Browsers" src="http://www.livetrainingsession.com/tips/wp-content/uploads/2010/03/web_browsers1.jpg" alt="" width="187" height="180" /></a>The constant web browsers war is more about the chaos and the lack of consistency across the board in implementing the recommendations of the W3C  (Worldwide Web Consortium) regarding HTML and CSS. That leaves web developers in the middle of a land mines field. Those pour souls have to gather all the courage  it takes to tiptoe out that mess when designing or updating web applications.</p>
<p><span id="more-272"></span></p>
<p><span id="more-272"> </span></p>
<p>It’s up to the web designer/developer to make sure the web site displays or degrades gracefully on all major web browsers: Firefox, Opera, Chrome, Safari and Internet Explorer (IE6, IE7, IE8). Reaching that goal seems daunting if not impossible.</p>
<p><span style="color: #ff6600;"><strong>How can one make all those web browsers get along?</strong></span></p>
<p>For years  now web developers have been pointing the accusatory finger to Internet Explorer: J’ACCUSE!!</p>
<p>Well, a few years back Netscape 4 was sitting on the trial bench, accused of slowing down the web. These days, all eyes are on IE6 . Internet Explorer 6 does not support most of the new HTML &amp; CSS features which take web page design to the next level: CSS round corners, PNG graphics, and the CSS :hover pseudo-selector is limited to the anchor tag.</p>
<p>Those are just a few of the potholes along a winding road. The need to make websites display well on all major browsers, despite all the shortfalls mentioned  earlier, puts a brake on how far a web designer/developer can push the envelope. More and more time is spent on a given project tweaking and “hacking the code” to be compatible with IE6 and others. And that “my friends” can not only be a real nightmare for the web designer, it’s a big impediment to the evolution of the web.</p>
<p>Since you will have to include IE6 anyway in the list a web browsers to check your website again, here are a few nuggets to save you tremendous web development time and frustration. At any stage in your web design process (HTML/CSS):</p>
<ul>
<li>Avoid applying padding to main CSS layout containers (div tags) at all cost</li>
<li>Use margins in the nested container to simulate the left and right padding on the closest parent container.</li>
<li>Wrap the text in paragraph (&lt;p&gt;) tags to which you applying margins to achieve the padding.</li>
<li>IE6 doubles the margin of the floated element on the direction of the floating  (left or right)</li>
<li>Always specify a width of any floated HTML element</li>
<li> Apply both the float and inline display properties to list items of your horizontal navigation</li>
<li>If you must hack, create a separate CSS style sheet where you would group all the styles aimed at IE6 and use the Internet Explorer’s conditional comments.</li>
</ul>
<p>At the end of the day/project, web development is all about matching the capabilities of the end-user’s web browser. It’s less about the artistic talent of the graphic artist or the programming skills of the web programmer.</p>
<p>“<em><strong>This web site is best viewed in<em><strong> web browser</strong></em> X or Y</strong></em>” is just an excuse to avoid spending extra time checking your design compatibility with other major web browsers. It might seem cost effective at first but it does not make business sense: you are loosing potential customers user web browsers different than your target browser.</p>
<p>All you need is to preview your site design at crucial steps during the web development process to fix potential problems early on. In the end you will achieve a design that will accurately display your website on all major web browsers. It may also be time to target smartphones as well.</p>
<p>IE6 is still here and breathing. We just have to deal with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.livetrainingsession.com/tips/2010/03/how-to-make-ie6-play-nice-with-other-web-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use HTML Comments To Solve CSS Layout Issues</title>
		<link>http://www.livetrainingsession.com/tips/2010/02/use-html-comments-to-solve-css-layout-issues/</link>
		<comments>http://www.livetrainingsession.com/tips/2010/02/use-html-comments-to-solve-css-layout-issues/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:00:29 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[nest]]></category>
		<category><![CDATA[nested]]></category>
		<category><![CDATA[nesting]]></category>
		<category><![CDATA[wrapper]]></category>

		<guid isPermaLink="false">http://www.livetrainingsession.com/tips/?p=86</guid>
		<description><![CDATA[If you are not inclined to use HTML comments in your web page markup you certainly never spent hours trying to fix a messed up CSS layout. That&#8217;s a loss of productivity and money that could have been avoided with just a simple preventive measure: using HTML comments.  It takes less than 20 seconds to [...]]]></description>
			<content:encoded><![CDATA[<p>If you are not inclined to use HTML comments in your web page markup you certainly never spent hours trying to fix a messed up CSS layout. That&#8217;s a loss of productivity and money that could have been avoided with just a simple preventive measure: <strong>using HTML comments.  <span style="font-weight: normal;">It takes less than 20 seconds to write one that could save you an hour of layout troubleshooting.</span></strong></p>
<p><span id="more-86"></span></p>
<p><strong><span style="font-weight: normal;">You just devoted  hours creating a pixel-precision CSS layout,  tweaked and tested it on various web browsers. It all looks good and works perfectly even in IE6.  You now have a  template you can use to create your web pages.  You start adding content, preview  that web page in a browser and surprise, oh surprise, your nicely crafted layout is now out of control.</span></strong></p>
<p><strong>What happened?</strong> <span style="background-color: #ffff00;"> </span><strong><span style="background-color: #ffff00;">More likely mismatched &lt;div&gt;, &lt;p&gt; or &lt;span&gt;,&#8230; tags!!</span></strong></p>
<p>Without proper comments to indicate where each main container tag is closed in the HTML markup, it can be challenging and painful to &#8220;hunt&#8221; the source of this layout issue. Because you now have so many nested  tags, you would have to look into your HTML markup line by line to match each opening and closing tag. And if you happen to miss just one of them, you will have to start all over again from the &#8220;&lt;body&gt;&#8221; tag down.</p>
<p>Let&#8217;s just take a look at this typical  markup within a body of an HTML document:</p>
<p><em><span style="color: #333333;">&lt;div id=&#8221;wrapper&#8221;&gt;</span><span style="font-style: normal;"><em><span style="color: #333333;">&lt;div id=&#8221;header&#8221;&gt;Header content goes here &lt;/div&gt;&lt;div id=&#8221;maincontent&#8221;&gt;&lt;div id=&#8221;content&#8221;&gt; Page content goes here&lt;/div&gt;&lt;div id=&#8221;sidebar&#8221;&gt; Sidebar Navigation&lt;/div&gt;&lt;/div&gt;&lt;div id=&#8221;footer&#8221;&gt; Footer Content goes here&lt;/div&gt;&lt;/div&gt; </span></em></span></em></p>
<p>It looks clean and is self-explanatory. However once you start  to copy &amp; paste content in the different containers  and add new blocks , matching tags becomes a daunting task. That&#8217;s because each container can wrap smaller containers through a nesting process that can go on and on. It&#8217;s hard to tell which closing &#8220;&lt;/div&gt;&#8221; corresponds to which opening &#8220;&lt;div &#8230;&gt;&#8221;.</p>
<p>That&#8217;s why you need to always comments your HTML markup before you start adding content. For instance the markup shown above would be properly commented as follow:</p>
<p><em><span style="color: #333333;">&lt;div id=&#8221;wrapper&#8221;&gt;<br />
</span><em><span style="color: #333333;">&lt;div id=&#8221;header&#8221;&gt;Header content goes here &lt;/div&gt;&lt;!&#8211;  end header &#8211;&gt;<br />
&lt;div id=&#8221;maincontent&#8221;&gt;<br />
&lt;div id=&#8221;content&#8221;&gt; Page content goes here&lt;/div&gt;&lt;!&#8211;  end content &#8211;&gt;<br />
&lt;div id=&#8221;sidebar&#8221;&gt; Sidebar Navigation&lt;/div&gt;&lt;!&#8211; end sidebar &#8211;&gt;<br />
&lt;/div&gt;&lt;!&#8211; end maincontent &#8211;&gt;<br />
&lt;div id=&#8221;footer&#8221;&gt; Footer Content goes here&lt;/div&gt;&lt;!&#8211; end footer &#8211;&gt;<br />
&lt;/div&gt;&lt;!&#8211; end wrapper &#8211;&gt;</span></em></em></p>
<p>The portions &#8220;&lt;!&#8211; &#8230; &#8211;&gt;&#8221; are HTML comments. The will never be displayed by a web browser when placed in your HTML markup.<br />
So the tips I would like to share with you based on my daily experience are:</p>
<ul>
<li> Comments helps you annotate your markup for future reference.</li>
<li>Add an HTML comment right after the closing tag &#8220;&lt;/div&gt;&#8221; tag of each main container.</li>
<li>Commenting your HTML code  help you set reference point where each HTML tags is closed.</li>
<li>HTML comments  helps you  isolate  each block and quickly fix a CSS  layout issue.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.livetrainingsession.com/tips/2010/02/use-html-comments-to-solve-css-layout-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
