We’re deep into HTML and CSS now with The Joshua Project, and I’m determined to teach these guys the right way to do things from the start, which means lots of CSS.
I’m not going to let them get into the bad habits of HTML hacks. No FONT tags, no CELLPADDING, etc. We may not tackle CSS positioning right away (yes, there may be some table-based layouts), but they’re not going to hack up pages like we did back in ‘96 either.
So, when I was wandering through a list of HTML tags, trying to ferret out the tags they really needed to know, I got to wondering: What is the minimum set of HTML tags you would need to build a Web page?
Removing the necessary structural tags like HTML, HEAD, TITLE, BODY and all that (essentially limiting the list to descendants of the BODY tag), I was left with these four tags as the minimum set needed to build a legitimate Web page: DIV, SPAN, IMG, and A.
Is this right? By my calculations, by using these four tags and a healthy dose of CSS, you could build a solid Web page. Comments? Am I missing a big one? (I know there are tags like OBJECT and APPLET and such, but you don’t need those, really.)