![]() |
|
How to Create Columns on Your Web PageThe easiest way for beginners to divide an HTML web page into columns is using tables. This method of structuring pages in HTML is considered taboo by the HTML purists. Actually, most web designers still use the practice. It's just easier than trying to use divisions and CSS and getting the same appearance from browser to browser. After you get grounded in HTML you can explore the wonders of tableless web pages. For now let's do it the easy way. We're going to divide our web page into two columns. We need a 2 column table. Notice you have an open and close table tag: We're creating a single row, two column table, so we have a row configured using an open and close row tag: We need to divide the single row into 2 columns or cells. to do that we use the cell tag which also includes an open and close tag: Each set of cell tags represents a column, so we need 2 sets: This is the code we'll use for our table. I used an ID attribute to give a name to each column. This will come in handy in our advanced lessons and when you're trying to find the proper cell in the code. Open firstpage.html in your text editor. *Doctype excluded for clarity Note: Try to make the code you build in NotePad look like our examples. You can create space between tags by placing your cursor at the end of a tag and pressing the Enter Key. There you have the beginning of your 2 column web page. There are of course some attributes which we'll add to the tags using style sheets as problems arise. If we add them as we go it will be easier to see what they do.
In the next lesson we'll learn about CSS style sheets and add some color to the web page. Let's learn some CSS Free Business Web HostingIf you are building a website for a business or organization, you can put it online for free at Microsoft® Office Live Small Business. You can create your website with HTML and upload it or use their tools and build it online. Take your business online with Microsoft® Office Live Small Business. Get started for FREE!
Create Web Sites without Learning Code
|
HTML Tutor HTML Editors Online Builder Tutorials Other Helps |
|
www.createasite.net ©2008 All Rights Reserved - Create a Site with HTML - Make a Free Website |