The first rule of web authoring is
Use W3's1 HTML and CSS validators to check your code.
Subsection B of the first rule is
Your page should be accessible to users of text-based clients.
If it's not, then you need to reconsider your layout. Even complex pages using CSS, if done correctly, are pleasant to view in Lynx. And if it's accessible to users of Lynx, then it is likely also accessible to users of older, graphical, browsers. It is much easier, unfortunately, to write code that is presentable with only SomeBrowser SomeVersionNumber at SomeScreenResolution than to write valid code that is accessible to at least eighty percent of your audience. Do not assume that everyone has the latest version of Internet Explorer or Netscape. And, please do not assume that your users, or even your friends, are willing to change their screen resolution for you, because they're not.
1 The World Wide Web Consortium
The second rule of web authoring is
Form fits function.
When learning (X)HTML, do not worry about how you want your pages to look, yet. Think first about the nature of the information you are providing. Use the P tag for paragraphs, the UL and OL for lists, and TABLE for tabular data. Use headings (H1, H2, Hn...), etc. HTML tags are functional (vs. decorative). To reiterate,
HTML is a structured language.
The third rule of web authoring is
Use Cascading Style Sheets, or CSS, to make your pages look the way you want.
<SPAN CLASS="classname">your text here</SPAN>
indiscriminately is a Very Bad IdeaTM.padding: 1%;
). Using absolute units can make CSS-enhanced pages inaccessible to many users.
and <br />
, and other 'tricks,' to make your page look the way you want it to look.