
Html
#1
Posted 01 April 2008 - 09:18 AM
Is there any way to move things to specific places? If so, how? I just know about the <align> tag, and that doesn't do a lot.
Thanks,
Kanashimi
#2
Posted 01 April 2008 - 09:33 AM
It looks, though, as though you're trying to use HTML to define the appearance of a page. HTML is for structure and content only. The appearance should be defined with an external CSS stylesheet.
#3
Posted 01 April 2008 - 09:36 AM
Edit: I see. Thanks, Thom.
Edited by Kanashimi, 01 April 2008 - 09:45 AM.
#4
Posted 01 April 2008 - 09:47 AM
If you want to define the layout of a page it's best to use tables. You can define margins or absolute spacings using style sheets, but some CSS functions are not widely compatible.
Edited by CaptainSlug, 01 April 2008 - 09:57 AM.
#5
Posted 01 April 2008 - 10:59 AM
-Kanashimi
Edit to OMC: Well, he does have his own website, so you would expect him to know about how to make a website. However, I do agree with you. =)
Edited by Kanashimi, 01 April 2008 - 11:21 AM.
#6
Posted 01 April 2008 - 11:14 AM
#7
Posted 01 April 2008 - 08:44 PM
Quote
If you want to define the layout of a page it's best to use tables
Edited by boisie, 01 April 2008 - 08:46 PM.
#8
Posted 02 April 2008 - 09:50 AM
CaptainSlug, on Apr 1 2008, 10:47 AM, said:
This hasn't been true for years. As long as you don't try to use bleeding-edge features, compatibility is no problem. You will save yourself an incredible amount of time, frustration, and professional scorn. I do this professionally.If you want to define the layout of a page it's best to use tables. You can define margins or absolute spacings using style sheets, but some CSS functions are not widely compatible.
Take a look at my most recent work, redoing the main part of their site: http://www.subboard.com/. Look at how simple the source is; all the rendering is done with one stylesheet (two if you're on IE). Every one of those pges uses 100% valid, semantic HTML. (The jobs page won't run through a validator because the guy running the jobs database has bad Unicode chars in there; I'm trying to find him to fix it.)
Now, if you're planning to do this, you'll need more than Notepad and IE. I can't recommend it personally (I'm on the Mac), but I've heard wonderful thing about Notepad++. Of course, you should be testing first in Firefox or another standards-compliant browser (Opera, Safari). If using FF, I HIGHLY recommend the Web Developer and (especially) Firebug extensions. The former has a variety of functions such as validation and twiddling settings; the latter is a multipurpose debugger that does everything from javascript debugging to manually altering HTTP sessions, and has the best DOM/CSS inspector I've ever seen.
#9
Posted 02 April 2008 - 09:21 PM
I'm not promoting you make a cluster of dozens of tables to format your page. For beginners who are just starting to learn HTML and want to format a page it's just best to say "use a table" because they're not hard to do. Learning how to do them the same way in stylesheets on the other hand is harder to teach.
I first learned HTML and CSS in 1995 when CSS wasn't really used anywhere and almost nobody knew how to make a website that wasn't ugly. It wasn't accepted or widely compatible until 2000. It's extremely compatible now, but learning how to use it properly isn't easy.
He can learn HTML first then learn how to do many of the same things faster with CSS. Learning both at the same time for most people is just too confusing. If you have ever had to teach Joe Public how to do this kind of stuff you might understand this.
Edited by CaptainSlug, 02 April 2008 - 09:31 PM.
#10
Posted 02 April 2008 - 11:42 PM
Quote
Either way, you have to learn how to create well-structured documents and how to make them look the way you want them to. With tabular layout, you learn an inferior method of the latter that teaches bad habits for the former, and then you have to learn how to do it the right way from scratch.I'm not promoting you make a cluster of dozens of tables to format your page. For beginners who are just starting to learn HTML and want to format a page it's just best to say "use a table" because they're not hard to do. Learning how to do them the same way in stylesheets on the other hand is harder to teach.
I first learned HTML and CSS in 1995 when CSS wasn't really used anywhere and almost nobody knew how to make a website that wasn't ugly. It wasn't accepted or widely compatible until 2000. It's extremely compatible now, but learning how to use it properly isn't easy.
He can learn HTML first then learn how to do many of the same things faster with CSS. Learning both at the same time for most people is just too confusing. If you have ever had to teach Joe Public how to do this kind of stuff you might understand this.
Properly written HTML is almost trivially intuitive; once you learn the basic syntax and the most common elements, you can easily turn even the most complex documents into well-written semantic HTML, and the only complex part is the style sheet. Tabular layouts make the HTML hard as well as wrong. The only way to avoid CSS is to write crappy code, using obsolete deprecated elements and poor practices. That's no way to learn anything, even if it seems easier at first.
I don't mean to flame; this is just very important to me as a web professional. The single biggest obstacle to progress on the web is not Internet Explorer, bandwidth, or industry politics, but bad code cranked out by people who never learned better.
Here are a couple of examples. View the source on each; which one is easier to follow? Good example | Bad Example
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users