3 Comments
- Bogtha, on 10/12/2007, -0/+2> You can learn HTML at W3 Schools.
W3Schools are sleazy. They take ages to correct mistakes in their tutorials, they have loads of Internet Explorer-only code, and they seem to have picked their name to deliberately confuse people into believing that they are somehow related to the W3C (they are not).
http://weblogs.mozillazine.org/doron/archives/2005/05/w3schools.html
> create a new HTML file with all the necessary tags (<html>, <body>, <head>, etc)
None of those tags are necessary. You can skip every single one of them and have a valid document that works in every browser.
> To edit the page easily, just place the styles in the head of the document with this code:
> <style>
That's invalid code, the <style> element type requires an explicit type attribute. Why bother learning from somebody who can't get it right themselves?
> <h1 class="heading">
Ugh, classitis. You don't need to use classes for each and every element you want to style. You already know it's a top-level heading because it's an <h1> element.
> <ul class="leftnav">
Presentational class names are a bad idea. What happens when you decide you want the navigation on the right-hand side?
> <font color=#0000ff>Black text here</font>
Huh? That's *blue* text, not black text. Also invalid code.
> HTML code: <div class="maincontent">
> CSS code: .maincontent {border-collapse:collapse; border:1px solid black; background:#fff;}
The border-collapse property doesn't apply to block display elements. That code will have no effect whatsoever.
I give up. Way too many mistakes. Reported as lame. - taron, on 10/12/2007, -0/+1Found the heading code. If you check here,
http://www.myneatsite.com/articles/how-to-convert-css-separating-styling-content.php
you'll see that the code is correct. Forgot to change it in the full code.
Thanks again for your assistance. - taron, on 10/12/2007, -1/+0I learned HTML and CSS at W3 Schools and it doesn't seem to have really out-dated information. Also, I was looking to recommend a reputable source of information. If you have better suggestions, feel free to point them out to me.
It is true, the page can be working without the tags. But normally, you do use them, right?
Yes, caught me. Corrected the thing.
The heading example is out dated - where did you get that? It has been h1 {} as long as I can remember.
Blue text. Thanks again.
Thank you for your constructive criticism. Further remarks are appreciated.


What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official