<?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>Creative-Le Studios &#187; web programming</title>
	<atom:link href="http://creative-le.com/tag/web-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://creative-le.com</link>
	<description>Inspiration, Resources, and Experience of a Web Designer</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:00:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Athena Wordpress Framework Released</title>
		<link>http://creative-le.com/resources/athena-wordpress-framework-and-resources/</link>
		<comments>http://creative-le.com/resources/athena-wordpress-framework-and-resources/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 21:58:11 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=1048</guid>
		<description><![CDATA[I&#8217;ve done some changes and added some resources in my downloads section.  After about one month of procrastinating and developing, I&#8217;ve finally able to release my first WordPress theme.  Although it&#8217;s not really a theme that&#8217;s designed for anything or subject, it&#8217;s more of a WordPress framework that will help me develop my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve done some changes and added some resources in my downloads section.  After about one month of <span style="text-decoration: line-through;">procrastinating and</span> <strong>developing</strong>, I&#8217;ve finally able to release my first <strong>WordPress theme</strong>.  Although it&#8217;s not really a theme that&#8217;s designed for anything or subject, it&#8217;s more of a <strong>WordPress framework</strong> that will help me develop my future themes.  I&#8217;ve decided to release it as well to the open public so that other people may use it as a framework and build upon it.</p>
<p><span id="more-1048"></span></p>
<h2>Athena Framework &#8211; WordPress Theme Framework</h2>
<p><img class="alignnone size-full wp-image-1052" title="Wordpress Athena Framework Theme" src="http://creative-le.com/admin/wp-content/uploads/2010/04/athenabody1.jpg" alt="Wordpress Athena Framework Theme" width="660" height="332" /></p>
<p><strong>Athena Framework</strong> is a WordPress framework theme that&#8217;s more than just a blank slate as you may have noticed from other frameworks.  It&#8217;s actually styled to the point that it can be usable and <strong>through slight modifications</strong>, it can be a totally <strong>different theme</strong>.  In addition, it contains many common functions and features that a lot of my clients request or a lot of blogs have been using such as the <strong>Share This Post feature</strong> that allows you to share the current entry to <strong>Digg, Facebook, Twitter, Stumbleupon, and Delicious</strong>.  (You can add more social networking sites simply by adding the necessary share codes &#8211; <a href="http://www.narga.net/45-most-popular-social-bookmarking-link-codes-for-wordpress/">45+ Most Popular Social Bookmarking Codes for Wordpress</a>)</p>
<p>Another feature are the <strong>widgetized areas</strong>.  There are <strong>2 in the side bar</strong> which makes the framework capable of being a <strong>three (3) column layout</strong>, and also <strong>4 widgetized areas</strong> in the footer which makes those <strong><a href="http://www.webanddesigners.com/25-best-footer-design-in-web-design">trendy big footers</a></strong> you see running around lately on many blogs and sites.</p>
<p><img class="alignnone size-full wp-image-1053" title="Athena Footer Framework Theme" src="http://creative-le.com/admin/wp-content/uploads/2010/04/athenafooter1.jpg" alt="Athena Footer Framework Theme" width="660" height="332" /></p>
<p><strong>Athena Framework</strong> also features an <strong>additional page template file</strong> to allow you to have a <span style="text-decoration: underline;">page with a sidebar</span>, and a <span style="text-decoration: underline;">page without a sidebar</span>.  By simply selecting the <strong>Full Width Page</strong> template in the template section, you can quickly achieve that change.</p>
<p>This <strong>framework theme</strong> features some <strong>CSS3 Elements for experimental purposes</strong>, and also a <strong>Jquery Navigation Menu</strong>.  There may be some frequent updates as I see some errors along the way or if you guys see any, so make sure to keep updated by <a href="http://twitter.com/creativele">following me on twitter</a> or checking my site.</p>
<h2><a href="http://creative-le.com/download/athenaframework1.0.zip">Download Athena Wordpress Framework</a></h2>
<p>Thanks for checking out my theme and if you have any feedback, suggestions, or bugs just leave a comment.  Keep out on the lookout for version 2 which will feature some <strong>Admin Theme Options</strong>.</p>
<p><strong>Update:</strong> <em>I have discontinued this theme.  There will no longer be any modifications to it as Version 2 of this theme aka <strong>Ares Framework</strong> is released.  Most of the bugs that were in <strong>Athena Framework are fixed in Ares Framework</strong>.  However, <strong>Ares Framework does include the Admin Options</strong>.  If you don&#8217;t like that bulk in your theme then you can still <strong><a href="http://creative-le.com/download/athenaframework1.0.zip">download version 1 of Athena Framework</a></strong>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/resources/athena-wordpress-framework-and-resources/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Speed Up Web Development</title>
		<link>http://creative-le.com/resources/useful-time-saving-tools-for-web-development/</link>
		<comments>http://creative-le.com/resources/useful-time-saving-tools-for-web-development/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 21:43:52 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=906</guid>
		<description><![CDATA[Who wants to do tedious things when there are already made or automated for you?  There are many useful resources, templates, and websites that can save a developer a lot of time when developing a website.  I use these tools constantly during development to fill up some temporary content to test out spacing, [...]]]></description>
			<content:encoded><![CDATA[<p>Who wants to do <strong>tedious things</strong> when there are already made or automated for you?  There are many useful <strong>resources, templates, and websites</strong> that can save a developer a lot of time when developing a website.  I use these tools constantly during development to fill up some temporary content to test out spacing, or fill up a wordpress theme so that everything won&#8217;t be missed when coding the blockquotes, the heading tags, and so forth.</p>
<p><span id="more-906"></span></p>
<p>I gave out quite a few <a href="http://creative-le.com/resources/top-10-web-design-tools-to-start-with/">web resources</a> that are almost pivotal to web development these days.  They save so much time, and gives us a better hold and control on how we create websites in today&#8217;s world.  Here are more tools and resources that will help your web development faster, efficient, and can I say more fun?</p>
<h1>Placeholder Images and Graphics</h1>
<p>Like most developers, we all come to the point where we have to go through the mock-up templates or open up Photoshop to create some placeholder images so that we can see how the website design looks with some images.  I don&#8217;t know how much time I had to load up a whole new program just to make a blank image that fits a certain size so that I can upload it and then implement it into the website.  Well, that portion of time is now saved by this really creative site (great minimalist design as well).  <a href="http://placehold.it" target="_blank">Placehold.it</a> is a site where you can simply put dimensions at the end and voila, you have yourself a placeholder image to place on your site.</p>
<p><a href="http://placehold.it"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/plachold.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-916" /></a></p>
<p>There are obviously similar sites to <a target="_blank" href="http://placehold.it">Placehold.it</a> but I find this one the most aesthetically pleasing in addition to a very easy name to remember without having to bookmark it.</p>
<h1>Dummy Text and Content</h1>
<p><em>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a,</em></p>
<p>If you haven&#8217;t seen this, then it&#8217;s time to get with the times.  <strong>Lorem Ipsum</strong> is simply dummy text that designers and developer use to also placehold some content to fill the page rather than putting a bland &#8220;<strong>Content Here</strong>&#8221; or &#8220;<strong>Coming Soon</strong>&#8220;.  You&#8217;ll never know how real content looks until you start having lots of it.  So instead of trying to write a few paragraphs, you can simply generate paragraphs of these &#8220;<strong>Lorem Ipsum</strong>&#8221; text with the following generators.  One is plugin through Firefox and the other is a simple site that generates it.</p>
<p><a href="http://sogame.awardspace.com/dummylipsum/"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/firefoxlipsum.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-917" /></a></p>
<p>The <strong>add-on for Mozilla Firefox</strong> is pretty simple to use.  You click on the button and you generate how many paragraphs you want and <strong>copy/paste</strong> it to your website.</p>
<p><a href="http://www.blindtextgenerator.com/lorem-ipsum"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/blindtextgenerator.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-918" /></a></p>
<p>This site is also a pretty good site for generating text since it doesn&#8217;t only provide just &#8220;<strong>Lorem ipsum</strong>&#8221; but also <strong>other content filling ways</strong> in case you think the Latin language of Lorem Ipsum seems dull or intimidating.</p>
<h1>Wordpress Dummy Content</h1>
<p>So you&#8217;re creating a <strong>Wordpress Theme</strong> but can&#8217;t be bothered with making pages, categories, tags, posts, and testing out the different tags like headings and blockquotes?  Using Wordpress dummy content can help with that.  All you do is download the <strong>XML file</strong> and then go to your <strong>Wordpress Admin</strong> and click on the <strong>Tools section and finally Import</strong>.  You want to click on &#8220;<strong>Wordpress</strong>&#8221; to import posts, comments, and attachments from another <strong>Wordpress</strong> file.  There&#8217;s also a plugin for this that you can use to do the same.  Either way, your wordpress site will be filled with content so you can start styling and making sure you don&#8217;t miss a thing.</p>
<p><a href="http://wpguerrilla.com/version-2-of-our-free-dummy-posts/"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/guerilladummypost.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-919" /></a></p>
<p><a href="http://wordpress.org/extend/plugins/wp-dummy-content/"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/plugindummycontent.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-920" /></a></p>
<h1>Frameworks &#8211; Wordpress, CSS, HTML, and More</h1>
<p>You&#8217;re at a point of development where you&#8217;re doing the same thing over and over&#8211;Declaring your doctype, resetting your CSS margins and padding, or creating a 2 column website, etc&#8230;  It&#8217;s time for you to use a <strong>framework</strong>.  Frameworks are basically premade files that has common and <strong>tedious coding already inputted</strong>.  When you use a framework, you&#8217;ll be immediately jumping into <strong>styling your website or coding in extra functions</strong>.  You have to be careful though because some frameworks may not be suited for you.  In my experience, I&#8217;ve used plenty of frameworks, and 50% of the time, the <strong>framework was just too much for me at times</strong>.  There&#8217;s nothing wrong with that, but sometimes there are things in a framework that most developers don&#8217;t really need.</p>
<p>The best way to combat this is to <strong>make your own</strong>.  I&#8217;m currently making a <strong>wordpress framework</strong> for myself that&#8217;s simple to use but at the same time has the functions I need to make the rest of my sites.  Although all frameworks may not be for everyone, there&#8217;s usually one or two that fits into your field, and if there isn&#8217;t, take a framework and perhaps modify it to make your own.  (Of course, take into consideration the licenses involved if you decide to release it to the public).</p>
<p>Here are some of my favorite frameworks for various projects:</p>
<h2>Wordpress</h2>
<p>I&#8217;ve only used 2-3 frameworks for Wordpress in my career and I have to say that all of them have been proven useful.  Here&#8217;s my list of my favorites:</p>
<p><a href="http://themeshaper.com/thematic/"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/thematicframework.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-921" /></a></p>
<p>Thematic is my most favorite theme that has the most features and functions built into it.  There&#8217;s a lot of magic going around in the back coding of the Thematic framework.  There&#8217;s hooks and actions that you can use to add anything to your theme.  In fact, this very site right here is built on thematic.  Although it&#8217;s very simple, I had no problem using the framework to add everything on here from &#8220;<strong>Post thumbnails</strong>&#8221; to &#8220;<strong>Adding an extra footer widget</strong>&#8220;.  By knowing a little php, you can do a lot of things, and with ease.  It was also convenient that the framework also included <a target="_blank" href="http://users.tpg.com.au/j_birch/plugins/superfish/">Superfish dropdown menus</a> as well.</p>
<p><a href="http://whiteboardframework.com/"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/whiteboard.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-922" /></a></p>
<p><a href="http://whiteboardframework.com/">Whiteboard</a> is for coders that just needs a basic theme without all the extra stuff so that they can implement what they exactly want in the theme without spending a lot of time removing the fat off from heavily coded frameworks.  Whiteboard was created by <a href="http://plainbeta.com/">Brian Purkiss</a> to provide a <strong>basic php framework</strong> because it was tedious to continuously make all the template files that was needed for Wordpress over and over again.  My current framework is actually made from <a href="http://whiteboardframework.com/">Whiteboard framework</a> since I wanted to build upon a simple framework so I could fully understand what&#8217;s in Wordpress and what I can do to change it to what I want.</p>
<h2>CSS</h2>
<p><strong>CSS frameworks</strong> have been very popular lately.  They provide premade <strong>grids and classes</strong> that help layout the <strong>structure of the website</strong> and all you have to do is fiddle around with the sizes, images, and colors.  <strong>Have I used a CSS Framework? </strong> To be honest, I haven&#8217;t used one because I&#8217;ve always become accustomed to just using my own or just type the CSS from scratch in addition, I found it more <strong>time consuming</strong> trying to learn a new framework for CSS when I&#8217;m already familiar with my coding.  However, it doesn&#8217;t mean they aren&#8217;t useful or time saving.  Check them out and see if they fit for you or not.</p>
<p>Here&#8217;s a link to a good blog post about frameworks: <a href="http://speckyboy.com/2008/03/28/top-12-css-frameworks-and-how-to-understand-them/">Top 12 CSS Frameworks and How to Understand Them</a></p>
<p>Now aside from actual frameworks for CSS there&#8217;s another type of CSS build that many developers use.  It&#8217;s called a &#8220;<strong>CSS Reset</strong>&#8220;.  A <strong>CSS Reset</strong> sheet is basically a file or can be code that basically <strong>resets all the styles of common HTML tags for all browsers</strong>.  Every browser has a different default styling of simple tags like the <strong>paragraph tag or a DIV tag</strong>.  The main differences are usually the <strong>margin and paddings</strong> that&#8217;s attached to them.  In order to make sure that all browsers renders your website the same (or close to it), a <strong>CSS Reset</strong> is used to <strong>default everything &#8220;0&#8243;</strong> and you can start giving numbers from there.</p>
<p><a href="http://meyerweb.com/eric/tools/css/reset/"><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/cssresset.jpg" alt="Time Saving Web Developing Tools" title="Time Saving Web Developing Tools" width="660" height="300" class="aligncenter size-full wp-image-923" /></a></p>
<p>My <strong>most preferred CSS Reset</strong> is <a href="http://meyerweb.com/eric/tools/css/reset/">Eric Meyer&#8217;s CSS Reset</a>.  It&#8217;s simple, effective, and covers pretty much every tag for HTML.</p>
<h2>Conclusion</h2>
<p>There are lots of useful things out in the internet world that can help you <strong>save time with your development</strong> so you can get your jobs done quicker and save extra work.  W<strong>hy do extra work when you can automate it or find a resource that&#8217;s already premade?</strong>  If there really isn&#8217;t nothing out there for you to use as a basis, then <strong>take a day off and create a framework</strong> or automated tool for yourself such as creating a photoshop action to crop all your big images or creating your own wordpress theme for faster development.</p>
<p>With these tools, I hope you can save yourself some time in which can be used to probably <strong>procrastinate</strong> more or <strong>simply rest and sleep for all those late nights you&#8217;ve stayed up to finish a project</strong>.  </p>
<p><strong>Have any time-saving tools that you like to use or made yourself?</strong>  Give me a link in the <strong>comments</strong> below and I&#8217;ll check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/resources/useful-time-saving-tools-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginning The Use of CSS in HTML</title>
		<link>http://creative-le.com/tutorials/using-css-stylesheets-in-html/</link>
		<comments>http://creative-le.com/tutorials/using-css-stylesheets-in-html/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 21:21:10 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=836</guid>
		<description><![CDATA[Cascading Stylesheet or CSS for short is one of the way web developers use to design an HTML site.  With CSS and images, you can make any site design whether it&#8217;s a simple portfolio site, or a Wordpress theme.


Table of Contents
1.  Beginning HTML &#8211; HTML Doctypes, Head, Body
2.  HTML Images and Hyperlinks [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Cascading Stylesheet or CSS</strong> for short is one of the way web developers use to design an HTML site.  With CSS and images, you can <strong>make any site design</strong> whether it&#8217;s a <a href="http://creative-le.com/tutorials/how-to-design-portfolio-site/">simple portfolio site</a>, or a Wordpress theme.<br />
<span id="more-836"></span></p>
<hr/>
<h2>Table of Contents</h2>
<p>1.  <a href="http://creative-le.com/tutorials/how-to-create-an-html-site/">Beginning HTML &#8211; HTML Doctypes, Head, Body</a><br />
2.  <a href="http://creative-le.com/tutorials/html-images-and-hyperlinks/">HTML Images and Hyperlinks &#8211; IMG, A</a><br />
3.  <a href="http://creative-le.com/tutorials/basic-html-body-structure-tags">Basic HTML Structure, Tags, Classes, and IDs &#8211; HTML Cheatsheat, Divs, Spans, Paragraph</a><br />
4.  <a href="http://creative-le.com/tutorials/html-list-tags-ul-li-ol">HTML List Tags &#8211; UL, LI, OL</a><br />
5.  <a href="http://creative-le.com/tutorials/beginning-css-stylesheets-in-html">Beginning Cascading Stylesheet (CSS) &#8211; Inline Styles, Internal Stylesheet, External Stylesheet</a><br />
6.  Positioning HTML elements with CSS &#8211; Floats, Margins, Padding, Relative, Absolute<br />
7.  Background Images in CSS<br />
8.  HTML/CSS Cheatsheet and Tricks &#8211; Overflow, Hovers, Text-Indent<br />
9.  Browser Compatibility &#8211; Internet Explorer (IE 6, 7, 8), Mozilla Firefox, Apple Safari, Google Chrome</p>
<h1>Final Result</h1>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/cssfinal.jpg" alt="Basic CSS Style for HTML" title="Basic CSS Style for HTML" width="660" height="300" class="aligncenter size-full wp-image-884" /></p>
<h1>What is CSS?</h1>
<p><strong>Cascading Stylesheet</strong> or <strong>CSS</strong> for short is one of the most important component in web design.  As I mentioned before, <strong>HTML is simply a language that structures</strong> and puts your content on the site.  CSS is where your <strong>site transforms into an actual design</strong>.  CSS will provide the <strong>positioning, colors, images, and other design functions</strong> that will make your HTML site into a well designed website.</p>
<p>You can do a lot of things with CSS.  Move your elements around, give them a different text color, change the font size, give them a specific width, center the object, giving them borders, changing the bullet image of lists, and even give them special attributes for when the user hovers or clicks on a link.  We will learn about them as we continue these tutorials.  In the end of all of these tutorials, we&#8217;ll be making a <strong>simple HTML website with a simple CSS based layout</strong>.</p>
<p>There are <strong>3 different ways</strong> to stylize your site:</p>
<p><strong>Inline Styles<br />
Internal Stylesheet<br />
External Stylesheet</strong></p>
<h2>Inline Styles</h2>
<p>Inline styles is used within the HTML file.  They are i<strong>ncluded within the tag elements that you want to style</strong> such as the div, span, ul, li, a, and other tags.  You can add inline styles to these to make them unique to other elements.  Saying that, when using inline styles, <strong>they take precedence over other styles set through internal and external stylesheet</strong>.</p>
<p>Here&#8217;s how to implement an inline style.  In our case, I&#8217;m going to style the title and make it red:</p>
<pre>
&lt;span class="titles" style="color:#ff0000;"&gt;My Title Here&lt;/span&gt;
</pre>
<p>With this code snippet, the words &#8220;<strong>My Title Here</strong>&#8221; is now red.  I used the CSS attribute of &#8220;<strong>color</strong>&#8221; and <strong>inserted the value</strong> for it.  For colors, CSS recognizes different types of value for color.  Two mostly used are a <strong>6 character hex codes</strong> like <strong>#ff0000, #ffffff, #000000</strong>,  and actual <strong>color names</strong> such as &#8220;<strong>red&#8221;, &#8220;blue&#8221;, and &#8220;gray&#8221;</strong>.  (Look at resources below for some cheat sheets on what colors are available out there)</p>
<p>Personally, I don&#8217;t like to use inline styles as it <strong>clutters up the code</strong> in the HTML file, and I like to keep everything organized in their own file.  HTML in html files, CSS in their separate CSS files.  The only reason I&#8217;m mentioning this is because you&#8217;ll come across when looking at old sites, or perhaps a script or plugin for your site will have a markup that has inline styles.</p>
<h2>Internal Stylesheet</h2>
<p>Another way to style your website with CSS that&#8217;s <strong>more clean and organized</strong> than inline styles is the use of an internal stylesheet.  With internal being the keyword, all the <strong>style resides within that same file that you placed it in</strong> and will <strong>ONLY affect that one file</strong>.</p>
<p>Internal Stylesheets are declared in the <strong>beginning of an HTML file</strong> within the <code>&amp;lt;head&amp;gt;</code> tag.</p>
<p>The code to set up the internal stylesheet is as follows:</p>
<pre>
&lt;style type="text/css"&gt;

&lt;style&gt;
</pre>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/internalcss.jpg" alt="Internal CSS in HTML File" title="Internal CSS in HTML File" width="660" height="300" class="aligncenter size-full wp-image-886" /></p>
<p>Once declared, you are now able to put any <strong>CSS attributes</strong> in there.  Now we&#8217;re going to skip &#8220;how&#8221; to actually put it in there, as I&#8217;m going to show you what external stylesheets are.  After that, then putting <strong>CSS attributes</strong> will be explained as they are the same with internal and external stylesheets.</p>
<p><em>CSS Attributes &#8211; These are attributes that will change the style of the element such as borders, width, height, color, etc&#8230;</em></p>
<h2>External Stylesheets</h2>
<p>External Stylesheets are the same as internal ones except they are <strong>located in a separate file</strong>.  They are just normal documents with the file extension of &#8220;<strong>.css</strong>&#8221; at the end.  They are mostly named &#8220;style.css&#8221;, &#8220;layout.css&#8221;, etc&#8230;  It doesn&#8217;t matter what it&#8217;s called, as long as it has a <strong>&#8220;.css&#8221; file extension</strong> then we know it&#8217;s a <strong>CSS</strong> (Cascading Stylesheet).</p>
<p>You can make as many external sheets as you want, however, they won&#8217;t do anything until you <strong>link them into your HTML file</strong> or website.  To do this, you <strong>insert a link tag to import the external CSS file into your HTML file</strong>.  Again, this code must be placed in the <code>&amp;lt;head&amp;gt;</code> section.</p>
<p>Here&#8217;s the code snippet to import an external CSS file into your website:</p>
<pre>
&lt;link rel="rel="stylesheet" href="style.css" media="all"&gt;
</pre>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/externallink.jpg" alt="Link External CSS to HTML Website" title="Link External CSS to HTML Website" width="660" height="300" class="aligncenter size-full wp-image-887" /></p>
<p>Notice the attribute <strong>href</strong>.  Just like making hyperlinks, you can direct it exactly <strong>where you put your CSS sheet</strong>, whether it be in another folder or named different.  For this tutorial, the CSS sheet is located in the root directory and labeled &#8220;style.css&#8221;.</p>
<h1>Adding CSS attributes to elements</h1>
<p>I&#8217;ll be using the external stylesheet for our examples.  However, note that the code structure for external stylesheet will be the same for an internal stylesheet.</p>
<p>So open up your CSS file and the first thing we are going to learn is <strong>how to comment</strong> in it.  Comments are <strong>important to document what you do</strong> in your project.  By using comments, you can further organize your code as in any language where you learn to comment in addition to making it easy for other people to understand it if you happen to pass this code off to someone.</p>
<p>To start a comment, all you need to do is add a &#8220;/*&#8221; in front of your comment and then finish the comment by adding a &#8220;*/&#8221; at the end of your comment.</p>
<p>As a result:</p>
<p><code>/*CSS for Creative-Le Website Tutorial*/</code></p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/commentcss.jpg" alt="Commenting in CSS" title="Commenting in CSS" width="660" height="300" class="aligncenter size-full wp-image-888" /></p>
<p>For the purpose of this tutorial, there are three ways to target/select an element in your website to style.</p>
<p><strong>Global elements<br />
ID elements<br />
Class elements</strong></p>
<p>Remember on our tutorials about <a href="http://creative-le.com/tutorials/basic-html-body-structure-tags/">div, p, span</a> and <a href="http://creative-le.com/tutorials/html-list-tags-ul-li-ol/">ul, li, and ol</a> tags where we talked about giving them <strong>ID and Classes</strong>?</p>
<p>The reason why it&#8217;s important to have classes and ID is because you can use those names to <strong>target and select them in your CSS</strong>.  Not all the divs in your html site are going to function the same, so it&#8217;s important to give them a <strong>special name</strong>, so that you can target them specifically and <strong>style them in a special way without having to mess up the other elements</strong>.</p>
<h2>Global Elements</h2>
<p>Global elements isn&#8217;t the actual name, but I&#8217;m naming it that because it basically <strong>covers all the basic html elements</strong> that it recognizes such as <strong>body, div, p, span, ul, li, etc&#8230;</strong>  It&#8217;s not specific, so if you target a basic <code>div</code> and make all the text inside a <code>div</code> red, then <strong>all the divs in your website</strong> will have red text, unless <strong>specified otherwise by their ID or Class name</strong>.</p>
<p>Here&#8217;s a snippet of how to target a global element:</p>
<p><code><br />
body{<br />
font-size: 14px;<br />
}</p>
<p>ul, li{<br />
list-style:none;<br />
}<br />
</code></p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/globalelements.jpg" alt="Stylizing Global Elements in CSS" title="Stylizing Global Elements in CSS" width="660" height="300" class="aligncenter size-full wp-image-889" /></p>
<p>Notice how each element is followed by an <strong>open-bracket &#8220;{&#8220;</strong> and ends with a <strong>closed-bracket &#8220;}&#8221;</strong>.  And also, any CSS attribute line has a <strong>semi-colon &#8220;;&#8221;</strong> at the end.  This is the standard <strong>CSS coding syntax</strong>.  And so, if there are any errors on your site, and you believe it&#8217;s an error in the CSS file, then it might be your syntax.  Make sure you don&#8217;t miss any brackets or semi-colons.</p>
<p>With this code in the CSS file, we make all the text located within the <code>body</code> tag to 14px and we made all <strong>ul and li tags to have no bullets on them</strong>. <code>list-style:none</code> makes it so the list will not have any bullets.  This is useful because many times, designers use lists for their navigation for semantic purposes but they don&#8217;t want the <strong>ugly bullets to be in the way</strong>.</p>
<p><strong>Note</strong>: If multiple elements on site requires the same styling, you can <strong>include them in a series</strong> instead of declaring each of them individually.  From the example above, I have &#8220;<strong>ul, li</strong>&#8221; and then my code.  That means, all <strong>ul and all li elements will have that style</strong>.  It&#8217;s a shorter way than typing:</p>
<p><code>ul{<br />
list-style:none;<br />
}</p>
<p>li{<br />
list-style:none;<br />
}</code></p>
<p>There are lots of global elements that you can target and style.  It&#8217;s good practice to use them because the less CSS write, the less size the file will be.  Try not to give every class a <code>font-size: 14px;</code> if you can just do that in one swoop by putting that in the <code>body</code> tag.</p>
<h2>Class Elements &#8211; HTML Tags that have Classes</h2>
<p>HTML tags that have class names are targeted and selected a different way than global elements.  To target class objects, you need to have a pe<strong>riod &#8220;.&#8221;</strong> in front of the class name.  For example:</p>
<p><code>.copyright{<br />
color: #ff0000;<br />
font-size: 10px;<br />
}</code></p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/classelement.jpg" alt="Targeting Class Elements in CSS" title="Targeting Class Elements in CSS" width="660" height="300" class="aligncenter size-full wp-image-890" /></p>
<p>From <a href="http://creative-le.com/tutorials/html-list-tags-ul-li-ol/">our last website tutorial</a>, we fully had a site with a few <strong>classes and IDs</strong>.  Here I&#8217;m targeting the span class &#8220;<strong>copyright</strong>&#8220;.  Notice the <strong>period &#8220;.&#8221;</strong> in front of it.  Through CSS, I&#8217;m adding a color to it, in addition to making the font size of it 10px.</p>
<p>Also a note, that once you start s<strong>electing and targeting elements specifically</strong>, they <strong>override the pre-existing files</strong>.  Everything in the <code>body</code> is supposed to be 14px but now that I targeted &#8220;copyright&#8221; specifically, it now changes to what I told it to be.  Also, once stylized, <strong>any tag that has the class name of &#8220;copyright&#8221;</strong> will have the styling that I put in.  So whether it&#8217;s a <code>div</code> or even a <code>p</code> tag, if it&#8217;s given a class name of &#8220;copyright&#8221; then they will also <strong>inherit the styles</strong>.</p>
<p>That&#8217;s what makes CSS <strong>very versatile and useful</strong>.  To be able to change multiple elements instantly and to be able to change them individually, gives websites a lot of options for designs.</p>
<h2>ID Elements &#8211; HTML Tags that have IDs</h2>
<p>Similar to classes, targeting IDs require something special in front of the name.  Instead of the <strong>period &#8220;.&#8221;</strong>, we use the <strong>number sign &#8220;#&#8221;</strong>.  Keep in the mind the <a href="http://css-tricks.com/the-difference-between-id-and-class/">differences between ids and classes</a>.</p>
<p>To target an ID, the code would look like the following, except the name will be replaced by whatever ID of an element you want to target.</p>
<pre>
#footer{
text-align:center;
}
</pre>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/03/idelement.jpg" alt="Targeting ID elements in CSS" title="Targeting ID elements in CSS" width="660" height="300" class="aligncenter size-full wp-image-891" /></p>
<p>This makes all text everything within the footer to be center aligned.  And that&#8217;s <strong>how you target IDs</strong>.</p>
<h1>Most commonly used CSS Attributes</h1>
<p>There are many attributes that you can add to an element.  Some elements are restrictive in that you may not be able to position, you may not be able to color it, etc&#8230;  I personally don&#8217;t remember all the rules, but I know enough to just do a <strong>trial and error</strong> to see if it works for that html tag or not.</p>
<p>Below are just a few links to most commonly used CSS attributes that you can add in your code.  At the end of this whole tutorial session I&#8217;ll make a quick cheat sheet with most of them so that you can download and don&#8217;t have to worry about researching it again unless you wanted to learn more.</p>
<p><a href="http://www.readygo.com/wcb05/15wcb05d.htm">Commonly Used CSS Terms</a><br />
<a href="http://www.codestyle.org/css/Glossary.shtml">CSS Code Gallery of Terms</a><br />
<a href="http://www.lesliefranke.com/files/reference/csscheatsheet.html">CSS Cheat Sheet</a><br />
<a href="http://www.allwebdesignresources.com/webdesignblogs/graphics/30-css-cheat-sheets-quick-reference-guides/">30+ CSS Cheat Sheets and Reference Guides</a></p>
<h2>Conclusion</h2>
<p>In this tutorial we have learned a lot about <strong>CSS (Cascading Stylesheets)</strong>.  We know how to do <strong>inline styles, internal stylesheets, and making our own external stylesheets</strong>.  In the download below, I have included the files that I&#8217;ve used for this lesson.  There is the<strong> index.html, about.html, images folder, and now a new file called &#8220;style.css&#8221;</strong>.</p>
<p>What I&#8217;ve done in the source was linked the external stylesheet with index.html, and put some CSS coding to stylize certain parts.  What you can do is <strong>link the style.css file to the about.html</strong> and also mess around with <strong>targeting different elements in the html files</strong>.</p>
<p>I hope you enjoy the tutorial and begin to learn how powerful CSS is for a website.  If it wasn&#8217;t for CSS, all websites would relatively look the same.  Any questions, comments, feedback are appreciated.  Make sure to comment below, and I&#8217;ll get back to you.</p>
<h4 class="go-back"><a href="http://creative-le.com/download/website-tutorialpart5.zip">Download Source Files (.zip)</a></h4>
<h2>Additional Resources</h2>
<p><a target="_blank" href="http://www.w3schools.com/css/">W3 Schools &#8211; CSS</a><br />
<a target="_blank" href="http://htmlhelp.com/reference/css/quick-tutorial.html">CSS Quick Tutorial</a><br />
<a target="_blank" href="http://www.csstutorial.net/introductionCSS.php">Introduction to CSS</a><br />
<a target="_blank" href="http://meyerweb.com/eric/css/references/index.html">CSS References</a><br />
<a target="_blank" href="http://www.w3schools.com/css/css_colornames.asp">CSS Hex codes and Color Names</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/tutorials/using-css-stylesheets-in-html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTML List Tags – UL, LI, OL</title>
		<link>http://creative-le.com/tutorials/html-list-tags-ul-li-ol/</link>
		<comments>http://creative-le.com/tutorials/html-list-tags-ul-li-ol/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 20:46:16 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=714</guid>
		<description><![CDATA[There are different ways to make a list of items in HTML.  In this tutorial, you will learn about 2 ways that are used the most often.  In addition, you will learn when and how to implement lists.


Table of Contents
1.  Beginning HTML &#8211; HTML Doctypes, Head, Body
2.  HTML Images and Hyperlinks [...]]]></description>
			<content:encoded><![CDATA[<p>There are different ways to make a list of items in HTML.  In this tutorial, you will learn about 2 ways that are used the most often.  In addition, you will learn when and how to implement lists.<br />
<span id="more-714"></span></p>
<hr/>
<h2>Table of Contents</h2>
<p>1.  <a href="http://creative-le.com/tutorials/how-to-create-an-html-site/">Beginning HTML &#8211; HTML Doctypes, Head, Body</a><br />
2.  <a href="http://creative-le.com/tutorials/html-images-and-hyperlinks/">HTML Images and Hyperlinks &#8211; IMG, A</a><br />
3.  <a href="http://creative-le.com/tutorials/basic-html-body-structure-tags">Basic HTML Structure, Tags, Classes, and IDs &#8211; HTML Cheatsheat, Divs, Spans, Paragraph</a><br />
4.  <a href="http://creative-le.com/tutorials/html-list-tags-ul-li-ol">HTML List Tags &#8211; UL, LI, OL</a><br />
5.  <a href="http://creative-le.com/tutorials/beginning-css-stylesheets-in-html">Beginning Cascading Stylesheet (CSS) &#8211; Inline Styles, Internal Stylesheet, External Stylesheet</a><br />
6.  Positioning HTML elements with CSS &#8211; Floats, Margins, Padding, Relative, Absolute<br />
7.  Background Images in CSS<br />
8.  HTML/CSS Cheatsheet and Tricks &#8211; Overflow, Hovers, Text-Indent<br />
9.  Browser Compatibility &#8211; Internet Explorer (IE 6, 7, 8), Mozilla Firefox, Apple Safari, Google Chrome</p>
<h1>Final Result</h1>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/listsresult.jpg" alt="Basic HTML and CSS" title="Final Result - HTML Lists OL, LI, UL" width="660" height="300" class="aligncenter size-full wp-image-725" /></p>
<h1>Basic List Tags &#8211; OL and UL</h1>
<p>More or less, you&#8217;ll be running into a situation where you need to list a couple of items or have multiple similar elements together.  Sure you can use DIVs and Paragraph tags to do the same, however semantically speaking, if you have a list of items (to-do list, list of images, list of terms, list of navigation items), then you want to use the HTML list tags.  There are 2 major list tags (there are more, but for the purpose of common HTML use, the other tags don&#8217;t get used as much as these).</p>
<h2>OL &#8211; Ordered Lists</h2>
<p>Ordered lists are lists that are meant to be in order such as a list of things to do to clean the dishes.  For example:</p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/orderedlists.jpg" alt="Basic HTML and CSS" title="HTML Ordered Lists" width="660" height="300" class="aligncenter size-full wp-image-726" /></p>
<p>Here&#8217;s the tag needed for an ordered list:</p>
<pre>
&lt;ol&gt;
&lt;li&gt;Pour the soap&lt;/li&gt;
&lt;li&gt;Wash the dishes&lt;/li&gt;
&lt;li&gt;Dry them off&lt;/li&gt;
&lt;/ol&gt;
</pre>
<p>Simple enough.  <code>&amp;lt;ol&amp;gt;</code> stands for ordered lists and you will see that you need to have list items for a list, and so that&#8217;s what <code>&amp;lt;li&amp;gt;</code> is for.  For every item in the list, you should use an LI tag.</p>
<p>By default, the browser will automatically generate the numbers for you if you didn&#8217;t style them.  I inserted the above code and put it in <strong>our index.html file</strong> that we should have.</p>
<h2>UL &#8211; Unordered lists</h2>
<p>Another type of list is an <strong>Unorderd list</strong>.  An unordered list is similar to an ordered list except it will <strong>use bullets instead of numbers</strong> so that it becomes a list of things rather than a list of things that should be done in order or have any importance to them like a grocery list.</p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/unorderedlists.jpg" alt="Basic HTML and CSS" title="HTML Unordered Lists" width="660" height="300" class="aligncenter size-full wp-image-727" /></p>
<p>To create an unordered list, we will use the <code>&amp;lt;ul&amp;gt;</code> tag:</p>
<pre>
&lt;ul&gt;
&lt;li&gt;Milk&lt;/li&gt;
&lt;li&gt;Eggs&lt;/li&gt;
&lt;li&gt;Meat&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>When placed in the code, you&#8217;ll notice the bullets.  With CSS, you will be able to replace those bullets with other styles like disc styles, squares, or even have a bullet image that you created yourself.</p>
<h1>Why should we use lists?</h1>
<p>Obviously lists are great to use when you&#8217;re making a list.  You can style them in a way so that they pop out easily rather than trying to format with spaces.  Another reason why lists are used is that it&#8217;s one of those things that makes sense to use when you do.  You will see many websites that uses lists for their <strong>navigation, site maps, sidebar, image gallery</strong>, and so forth.  The reason why is because of styling the list items.</p>
<p>The <strong>list items</strong> within the list will most likely <strong>carry the same styles</strong> such as color, font, background, etc..  Since they are part of a list, then they should be the same style which makes it easy for coding because you can just style the <code>&amp;lt;li&amp;gt;</code> and all the list items will follow that style.  Remember all your lists can look different from each other by using [[ids and classes]] that we learned last tutorial.</p>
<p>Make sure to <u>check out the additional resources</u> below for more information on why you should use lists and how you should use them.  (Pretty much the same reason here but more in depth)</p>
<h1>Let&#8217;s practice making lists</h1>
<p>Let&#8217;s open our index.html file.  Basically we are going to make two unordered lists, and one ordered list.  One <code>&amp;lt;ul&amp;gt;</code> will be used for the navigation, and the other will be a regular one so that later one I can show you that you can style lists differently.  And finally, an <code>&amp;lt;ol&amp;gt;</code> will be used just for an example.  </p>
<p>Our navigation:</p>
<pre>
&lt;ul&gt;
&lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Our other Unordered List:</p>
<pre>
&lt;ul class="list"&gt;
&lt;li&gt;Milk&lt;/li&gt;
&lt;li&gt;Eggs&lt;/li&gt;
&lt;li&gt;Meat&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Our Ordered List:</p>
<pre>
&lt;ol&gt;
&lt;li&gt;Pour the soap&lt;/li&gt;
&lt;li&gt;Wash the dishes&lt;/li&gt;
&lt;li&gt;Dry them off&lt;/li&gt;
&lt;/ol&gt;
</pre>
<p>Here&#8217;s how my index.html looks like in the end.</p>
<pre>
&lt;div id="wrapper"&gt;

&lt;div id="header"&gt;
&lt;span class="titles"&gt;My site Name&lt;/span&gt;
&lt;/div&gt;

&lt;div id="navigation"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;div id="content"&gt;
&lt;p&gt;This should be a paragraph of text, but I'm too lazy to make
a block of them.  You can do it on your free time.&lt;/p&gt;
&lt;p&gt;This is another paragraph of text that will contain more information.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pour the soap&lt;/li&gt;
&lt;li&gt;Wash the dishes&lt;/li&gt;
&lt;li&gt;Dry them off&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;

&lt;div id="sidebar"&gt;
&lt;p class="sidebar-text"&gt;Tiny information about this blog can be put here.
This will act as a side bar soon.&lt;/p&gt;

&lt;ul class="list"&gt;
&lt;li&gt;Milk&lt;/li&gt;
&lt;li&gt;Eggs&lt;/li&gt;
&lt;li&gt;Meat&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;div id="footer"&gt;
&lt;div class="footer-info"&gt;
&lt;span class="copyright"&gt;Copyright 2010 MySite.Com&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/listsresult.jpg" alt="Basic HTML and CSS" title="Final Result - HTML Lists OL, LI, UL" width="660" height="300" class="aligncenter size-full wp-image-725" /></p>
<p>And there you have it.  The picture above shows what it looks like in firefox after you check it out.  The source files for this lesson is at the bottom so you can compare your code with it, if you get lost.  Our next lesson is going to change your perspective of HTML a bit.  You might be saying how all of this HTML can convert into those sites that you see today.  Well, all I can say is <strong>CSS does wonders</strong> in creating sites.  I&#8217;ll make sure to have that tutorial soon.</p>
<h2>Conclusion</h2>
<p>That&#8217;s it for this segment of <strong>Basic HTML and CSS</strong>.  We covered how to make <strong>HTML lists using UL, OL, and LI</strong>.  Check out the additional resources below to understand them better in detail.  If you have any questions or comments, feel free to leave your say below.  I&#8217;ll have the next tutorial coming up soon.</p>
<h4 class="go-back"><a href="http://creative-le.com/download/website-tutorialpart4.zip">Download Source Files (.zip)</a></h4>
<h2>Additional Resources</h2>
<p><a target="_blank" href="http://www.w3schools.com/HTML/html_lists.asp">W3 Schools &#8211; HTML Lists</a><br />
<a target="_blank" href="http://green-beast.com/blog/?p=185">Using HTML Lists Properly</a><br />
<a target="_blank" href="http://css.maxdesign.com.au/listamatic/about-why.htm">Why use lists for site navigation?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/tutorials/html-list-tags-ul-li-ol/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Basic HTML Body Structure &amp; Tags</title>
		<link>http://creative-le.com/tutorials/basic-html-body-structure-tags/</link>
		<comments>http://creative-le.com/tutorials/basic-html-body-structure-tags/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 03:58:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=668</guid>
		<description><![CDATA[From the past tutorials, we learned about the Head and Meta Tags and we also learned the tags for Images and Hyperlinks.  Now we are going to dive into the main part of coding which is Body.  The body will contain your content and I&#8217;m going to show you the basic markup that&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>From the past tutorials, we learned about the Head and Meta Tags and we also learned the tags for Images and Hyperlinks.  Now we are going to dive into the main part of coding which is Body.  The body will contain your content and I&#8217;m going to show you the basic markup that&#8217;s found in nearly all websites and blogs.</p>
<p><span id="more-668"></span></p>
<hr/>
<h2>Table of Contents</h2>
<p>1.  <a href="http://creative-le.com/tutorials/how-to-create-an-html-site/">Beginning HTML &#8211; HTML Doctypes, Head, Body</a><br />
2.  <a href="http://creative-le.com/tutorials/html-images-and-hyperlinks/">HTML Images and Hyperlinks &#8211; IMG, A</a><br />
3.  <a href="http://creative-le.com/tutorials/basic-html-body-structure-tags">Basic HTML Structure, Tags, Classes, and IDs &#8211; HTML Cheatsheat, Divs, Spans, Paragraph</a><br />
4.  <a href="http://creative-le.com/tutorials/html-list-tags-ul-li-ol">HTML List Tags &#8211; UL, LI, OL</a><br />
5.  <a href="http://creative-le.com/tutorials/beginning-css-stylesheets-in-html">Beginning Cascading Stylesheet (CSS) &#8211; Inline Styles, Internal Stylesheet, External Stylesheet</a><br />
6.  Positioning HTML elements with CSS &#8211; Floats, Margins, Padding, Relative, Absolute<br />
7.  Background Images in CSS<br />
8.  HTML/CSS Cheatsheet and Tricks &#8211; Overflow, Hovers, Text-Indent<br />
9.  Browser Compatibility &#8211; Internet Explorer (IE 6, 7, 8), Mozilla Firefox, Apple Safari, Google Chrome</p>
<hr/>
<h1>Final Result</h1>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/finalresult.jpg" alt="Basic HTML and CSS Structure" title="Final HTML Result" width="660" height="300" class="aligncenter size-full wp-image-704" /></p>
<h1>Basic Body Structure</h1>
<p>Every site or blog contains the same HTML basic body structure.  All sites roughly contain the following elements to their coding:  <strong>Header, Navigation, Content, Sidebar, and Footer</strong></p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/basicstructure.jpg" alt="Basic HTML Structure and Markup" title="Basic Website Structure" width="660" height="300" class="aligncenter size-full wp-image-680" /></p>
<p><strong>Header</strong> &#8211; Usually comprises of big pictures, graphics, or a logo of your site.  This part is what most people like to exaggerate on as it&#8217;s usually very appealing.</p>
<p><strong>Navigation</strong> &#8211; Like its name, it&#8217;s the navigation part of your site.  Your main links that will help navigate your audience through your site.</p>
<p><strong>Content</strong> &#8211; The content section is usually where your main area will be that holds your content, posts, galleries, and such forth.</p>
<p><strong>Sidebar</strong> &#8211; Although not really a necessity (it&#8217;s been a popular thing throughout many blogs), it contains additional information that may appeal to the user or even additional navigation items.  (i.e Twitter Feed, Subscribe links, Search, etc&#8230;)</p>
<p><strong>Footer</strong> &#8211; And finally, the footer is usually the place where the copyright is held although lately it&#8217;s been a trend where footers begin to hold extra information like recent posts, affiliates, short bios, and the list goes on.</p>
<p>If you break down any site to its core, you will begin to see the structure and also see that they are same.  It&#8217;s the graphics, styling, and implementation of that structure that makes the website/blog all unique.</p>
<h1>Let&#8217;s start off with some basic DIVs</h1>
<p>The <strong>most common HTML tag</strong> you will see in a site other than a link tag or image tag is a <strong>DIV tag</strong>.  I believe <strong>DIV</strong> stands for division which means, it makes a division or section on a site.  This is true because that&#8217;s what it actually does.  The <strong>DIV</strong> tags will take whatever&#8217;s inside them and treat them like it&#8217;s own section.  <em>So why is this useful?</em></p>
<p><strong>DIVs</strong> will help your separate everything on your site and with <strong>CSS</strong> (Cascading Style Sheet), you can manipulate those sections.  Let&#8217;s see how we can put it into use with what we know.  Open up your HTML document (I&#8217;m using the index.html from the last tutorial)</p>
<p>The following is a <strong>basic html structure</strong> that will be put inside the <code>&amp;lt;body&amp;gt;</code> tags of your html site.</p>
<pre>
&lt;div id="wrapper"&gt;
&lt;div id="header"&gt;&lt;/div&gt;
&lt;div id="navigation"&gt;&lt;/div&gt;
&lt;div id="content"&gt;&lt;/div&gt;
&lt;div id="sidebar"&gt;&lt;/div&gt;
&lt;div id="footer"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/htmlstructure.jpg" alt="Basic HTML and CSS Structure" title="HTML Structure" width="660" height="300" class="aligncenter size-full wp-image-682" /></p>
<p>You may notice my formatting on the picture is different from the posted code.  Every designer have their coding preferences so it&#8217;s good to find yours as well.  I like to tab in any element that&#8217;s a part of another element.</p>
<p>Speaking of that you may notice an additional div tag added in the beginning called &#8220;<strong>wrapper</strong>&#8221; and that <strong>div</strong> actually ends after footer meaning it contains all of those div inside.  A &#8220;<strong>wrapper</strong>&#8221; is a popular div that most websites use to contain their site in.  And with a wrapper you can do many things with CSS such as controlling how wide your site is, whether your site is left align, centered, or right aligned, and more.  </p>
<p>To understand this better, I always like to think of the &#8220;<strong>wrapper</strong>&#8221; as wrapping paper and whatever is inside the wrapper is the gift.  And from that analogy you can understand that all the stuff inside the wrapper is contained by the wrapper and takes the shape of it.  In which case if my wrapper is 1200px wide, then all my contents inside is 1200px wide (unless it&#8217;s changed specifically with CSS).</p>
<p>In fact that&#8217;s how the DIV tag works in general.  The <strong>DIV wraps all the elements that&#8217;s inside together</strong>, and these elements will follow the styling of that DIV.</p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/wrapper.jpg" alt="Basic HTML and CSS Structure" title="How HTML Wrapper Works" width="660" height="300" class="aligncenter size-full wp-image-683" /></p>
<p>Hopefully, you&#8217;re not lost with that.  Let&#8217;s continue with something else you may have noticed. </p>
<p><strong>What&#8217;s ID?</strong></p>
<h1>IDs and Classes</h1>
<p>For any tags, we can give them a label:  <strong>id</strong> or <strong>class</strong></p>
<p>And they can be referenced as follows:</p>
<pre>
&lt;div id="name"&gt;&lt;/div&gt;
&lt;div class="name"&gt;&lt;/div&gt;
</pre>
<p>You may be already asking, <strong>what&#8217;s the difference</strong>?  Well, here&#8217;s an article that explains well the <a target="_blank" href="http://css-tricks.com/the-difference-between-id-and-class/">difference between ids and classes</a>.  In short, we use ID for cases <strong>where the element is unique</strong> and will only be used <strong>once per page</strong> and we use <strong>CLASS</strong> for elements that are going to be <strong>used frequently</strong>.  </p>
<p><strong>Examples for ID include</strong>: Header and Footer.  For the most part, sites only contain one header and one footer on one page.</p>
<p><strong>Examples for CLASS include</strong>: Thumbnails and Post Titles.  These elements will appear all over your blog if you have posts.</p>
<p>Reminder that you can give an element a class and id.  To fully understand the difference and how to use them is one of those things you have to work with and experiment.  Again, I <strong>recommend that article</strong> about <a target="_blank" href="http://css-tricks.com/the-difference-between-id-and-class/">ids and classes</a> to help you understand them in more detail.</p>
<h1>Other Useful Tags &#8211; Paragraph and Span Tags</h1>
<p>Some other useful tags that we will be discussing now is the <strong>Paragraph Tag</strong> and the <strong>Span Tag</strong>.</p>
<p>The paragraph tag is simply what it says.  It&#8217;s mainly used to break off paragraphs meaning whenever you have a paragraph of information you would want to include all of that into a paragraph like below:</p>
<pre>
&lt;p&gt;
This is a paragraph of information.  P tags work just like a DIV tag whereas
anything inside this P tag will take on the CSS styling of P tag.  You can even
add classes and an id to this so that it becomes unique to other
paragraphs.
&lt;/p&gt;
</pre>
<h2>When to use DIV tag or P tag?</h2>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/howtousetags.jpg" alt="Basic HTML and CSS Structure" title="How to use Div and P tags" width="660" height="300" class="aligncenter size-full wp-image-681" /></p>
<p>It may be a stupid question but it&#8217;s a legit one.  The <em>real answer</em> to it is &#8220;Yes, you could&#8221; but the <strong>preferred answer</strong> is &#8220;No, you shouldn&#8217;t&#8221;.  You want to code your sites so that it&#8217;s semantically correct to a point.  If you have a paragraph of text, then use <code>&amp;lt;p&amp;gt;</code> otherwise if your section contains a lot of elements in it then use <code>&amp;lt;div&amp;gt;</code>.  </p>
<p>It&#8217;s up to you to figure out how to use these tags.  The more you code the more you&#8217;ll understand them better.  (Truth be told, as a freelancer, I didn&#8217;t know much on what these tags were.  I just used them and the more I coded, the more I found out that it <strong>made sense to use P tags for blocks of texts</strong> and such forth).</p>
<p>And the last tag we&#8217;ll learn for today is the <code>&amp;lt;span&amp;gt;</code> tag.</p>
<p><code>&amp;lt;span&amp;gt;</code> &#8211; from what I understand and use it for, is a tag mainly for text.  So if you have a certain text or certain texts that require styling then I use <code>&amp;lt;span&amp;gt;</code> tags.  Examples would be making certain text on the site a certain size if it&#8217;s a special word or something.  You&#8217;ll see how I use it when we get to the real coding portion with CSS.</p>
<p>An example of using span would be like this:</p>
<p><code>&amp;lt;span&amp;gt;Red Text&amp;lt;/span&amp;gt;</code></p>
<p>And that&#8217;s it.</p>
<h1>Let&#8217;s put it all together</h1>
<p>So we&#8217;re basically going to make a site right now.  It won&#8217;t be styled, but it will be a functional page that has information, and that can link to another page.</p>
<p>We already have our Basic body structure in our <code>&amp;lt;body&amp;gt;</code> tag, so let&#8217;s fill in some of those sections.</p>
<pre>
&lt;div id="wrapper"&gt;

&lt;div id="header"&gt;
&lt;span class="titles"&gt;My site Name&lt;/span&gt;
&lt;/div&gt;

&lt;div id="navigation"&gt;
&lt;a href="index.html"&gt;Home&lt;/a&gt;  |  &lt;a href="about.html"&gt;About&lt;/a&gt;
&lt;/div&gt;

&lt;div id="content"&gt;
&lt;p&gt;This should be a paragraph of text, but I'm too lazy to make
a block of them.  You can do it on your free time.&lt;/p&gt;
&lt;p&gt;This is another paragraph of text that will contain more information.&lt;/p&gt;
&lt;/div&gt;

&lt;div id="sidebar"&gt;
&lt;p class="sidebar-text"&gt;Tiny information about this blog can be put here.
This will act as a side bar soon.&lt;/p&gt;
&lt;/div&gt;

&lt;div id="footer"&gt;
&lt;div class="footer-info"&gt;
&lt;span class="copyright"&gt;Copyright 2010 MySite.Com&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
</pre>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/02/finalresult.jpg" alt="Basic HTML and CSS Structure" title="Final HTML Result" width="660" height="300" class="aligncenter size-full wp-image-704" /></p>
<p>And there you have it.  The above is what the page actually looks like rendered in Firefox.  Copy that code for both your index.html and about.html and you have yourself a site.  <em>Don&#8217;t just copy and paste and wait for the next tutorial</em>.  Play around with it and add more div tags or p tags.  You will begin to see how it all matters in the next tutorial.</p>
<h2>Conclusion</h2>
<p>That&#8217;s it for this segment of <strong>Basic HTML and CSS</strong>.  We covered the basic structure that goes into most websites, went through a few tags: <strong>DIV, P, and SPAN</strong>, and also talked about the <strong>difference between IDs and Classes</strong>.  In our next tutorial we&#8217;ll be starting to use <strong>CSS</strong>.  Although the next thing on the list is <strong>UL, LI, and OL</strong>, I will be covering CSS as well, since the next lesson will be a short post.</p>
<p>Before you head out, comment if you have any questions or even suggestions.  I&#8217;m open to learning more and also making my tutorials better since I want everyone to understand them.  Thank you for viewing my tutorial, and I&#8217;ll see you next time.</p>
<h4 class="go-back"><a href="http://creative-le.com/download/website-tutorialpart3.zip">Download Source Files (.zip)</a></h4>
<h2>Additional Resources</h2>
<p><a target="_blank" href="http://css-tricks.com/the-difference-between-id-and-class/">Differences of IDs and Classes</a><br />
<a target="_blank" href="http://www.flexewebs.com/semantix/content/">Semantic Uses of Tags</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/tutorials/basic-html-body-structure-tags/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
