<?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>TechieDan &#187; HTML</title>
	<atom:link href="http://techiedan.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiedan.com</link>
	<description>Your Search for The Tech Stuffs</description>
	<lastBuildDate>Tue, 22 May 2012 08:10:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Using CSS instead of plain HTML</title>
		<link>http://techiedan.com/2010/03/09/using-css-instead-of-plain-html/</link>
		<comments>http://techiedan.com/2010/03/09/using-css-instead-of-plain-html/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 01:40:54 +0000</pubDate>
		<dc:creator>techieDan</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://techiedan.com/?p=780</guid>
		<description><![CDATA[<p>For those that started studying computers or those in the 90s, most of us started learning the <strong>HOW TO BUILD A WEBPAGE with HTML</strong>. Those days, a webpage is defined by how well it was formatted and if you want fancy stuffs, the best one can get is <strong>Macromedia Flash</strong> (now <em>Adobe Flash</em>). Here are [...]]]></description>
			<content:encoded><![CDATA[<p>For those that started studying computers or those in the 90s, most of us started learning the <strong>HOW TO BUILD A WEBPAGE with HTML</strong>. Those days, a webpage is defined by how well it was formatted and if you want fancy stuffs, the best one can get is <strong>Macromedia Flash</strong> (now <em>Adobe Flash</em>). Here are the old codes of the old.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;table width=&quot;80%&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span style=&quot;color: red;&quot;&gt;This text is red&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
</pre>
<p>By doing this, the following text becomes red. Nothing is wrong with doing things like this. Though now there exist something better which is able to format text which is <strong>CSS</strong> (<em>Cascading Style Sheet</em>).</p>
<p><img class="alignnone size-full wp-image-782" title="CSS Book" src="http://techiedan.com/wp-content/uploads/2010/03/CSS-Book.jpg" alt="" width="350" height="438" /><br />
 <em><strong>Some of the books used to teach CSS</strong></em></p>
<p>Using <strong>CSS to format a text</strong> like the above to turn to red has got it&#8217;s advantages over the old style format. One it is <strong>Web 2.0 friendly</strong>, <strong>XML friendly</strong> and also changes can be made directly from a seperate file ( <em>.css file</em>). Another important thing is that it&#8217;s way flexible, assigning a class to a row of text with the specific characteristics changes the overall text.</p>
<p>This is a simple method to show how CSS works.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;table width=&quot;80%&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;span style=&quot;color:red&quot;&gt;This text is red&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span style=&quot;color: red;&quot;&gt;This text is red&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
</pre>
<p>It&#8217;s the same result. But what&#8217;s so special? Now let&#8217;s modify the code once again. We&#8217;ll start right at the beginning.</p>
<pre style="background: #FFFFCC;">&lt;html&gt;
 &lt;head&gt;
  &lt;style type="text/css"&gt;
   .redLight {
    color:red;
   }
  &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
  &lt;span class="redLight"&gt;This text is red&lt;/span&gt;
 &lt;/body&gt;
&lt;/html&gt;</pre>
<p>Now just copy and paste this script into your notepad and save it as example.html. Open it and you&#8217;ll see, wow&#8230; it&#8217;s <span style="color: #ff0000;"><strong>RED</strong></span>. Now how about if you wanted to add more text with the same color on other parts of the HTML. Simple! Just add <strong>&lt;span class=&#8221;redLight&#8221;&gt;</strong> or <strong>&lt;div class=&#8221;redLight&#8221;&gt;</strong> on another row of text.</p>
<p>For those who have been around tweaking their blogs and websites, most would be familiar with this new method. For those who are still using the old old school format of modifying your website or blog, it&#8217;s time to leap into the new way of doing things.</p>
<p>Edit : Amended code above.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedan.com/2010/03/09/using-css-instead-of-plain-html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Use Button Instead of Submit for Form</title>
		<link>http://techiedan.com/2009/01/18/use-button-instead-of-submit-for-form/</link>
		<comments>http://techiedan.com/2009/01/18/use-button-instead-of-submit-for-form/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 16:52:42 +0000</pubDate>
		<dc:creator>techieDan</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://techiedan.com/?p=257</guid>
		<description><![CDATA[Disable the automatic enter key that people tend to associate with forms. Well, it's good at the same time, but it's also sometimes good that you can limit your users from using the Enter key to submit the form if you want to do something else with it.]]></description>
			<content:encoded><![CDATA[<p>For those in the programming area, if you&#8217;re doing simple form processing of your HTML, why some people prefer buttons over submit.</p>
<p>Well for my personal preference, one of the good thing is that I can disable the automatic enter key that people tend to associate with forms. Well, it&#8217;s good at the same time, but it&#8217;s also sometimes good that you can limit your users from using the Enter key to submit the form if you want to do something else with it.</p>
<p>Getting a bit confusing, well, what is important is that by using buttons, I can forced the user to enable javascript in order to submit. Here&#8217;s how I do it.</p>
<pre style="background-color:#aaaacc">&lt;form name="form1" method="post" action="somepage" &gt;
&lt;input type='text' name='name' /&gt;
&lt;input type='button' value='Submit This Name' <strong><span style="color: #ff0000;">
onClick='submitForm(this.form1);</span></strong>'&gt;
&lt;/form&gt;</pre>
<p>Now if the user disables javascript, they won&#8217;t be able to process the form unless they are smart enough to change it, which most programmers and IT techies know. But this is just a small deterrent. Here&#8217;s the javascript part.</p>
<pre style="background-color:#aaaacc">&lt;script language="javascript"&gt;
function submitForm(thisform) {
thisform.submit();
}
&lt;/script&gt;</pre>
<p>There are lots of ways out there to force javascript control to be enabled on the form. But this is just the simplest of it all.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedan.com/2009/01/18/use-button-instead-of-submit-for-form/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Write HTML Codes on Blog Posts</title>
		<link>http://techiedan.com/2008/03/17/how-to-write-html-codes-on-blog-posts/</link>
		<comments>http://techiedan.com/2008/03/17/how-to-write-html-codes-on-blog-posts/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 14:13:51 +0000</pubDate>
		<dc:creator>techieDan</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://techiedan.com/2008/03/17/how-to-write-html-codes-on-blog-posts/</guid>
		<description><![CDATA[<p>Sometimes we wonder, how the heck one can write html codes on blogs, especially wordpress just for displaying purposes but without it affecting any codes on the blog page</p>
<p>This is where usage of &#60;pre&#62; tag comes in. Yes, by enclosing the html codes in &#60;pre&#62; tags, one can write html freely without displaying any changes [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we wonder, how the heck one can write html codes on blogs, especially wordpress just for displaying purposes but without it affecting any codes on the blog page</p>
<p>This is where usage of &lt;pre&gt; tag comes in. Yes, by enclosing the html codes in &lt;pre&gt; tags, one can write html freely without displaying any changes in code.</p>
<p><strong>Sample of pre TAG</strong></p>
<blockquote style="background-color: #ffefd5"><p>&lt;pre&gt;&lt;font color=&#8221;#ff0000&#8243;&gt;TEST&lt;/font&gt;&lt;/pre&gt;</p></blockquote>
<p>Of course the best possible way is for typing out <strong>&lt;</strong> is by using ascii codes like <strong>&amp;lt;</strong> which means less than. So that&#8217;s how I display some tags out in html. Need anymore clarification, drop me a line.</p>
<p>ps : &gt; is symbol for &amp;gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedan.com/2008/03/17/how-to-write-html-codes-on-blog-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

