|
The purists will tell you that HTML was not designed to described how a page should look,and they'd be right, it wasn't, but with every release Netscape and Microsoft add new HTML tags designed to increase the control the author has
over how the page will appear. See
Netscape's or Microsoft's pages for the very latest tags. Dynamic HTML is the latest, but Microsoft DHTML is different from Netscape HTML and DHTML is only supported by the 4.x/5.x series browsers. Cascading Style Sheets (CSS) are another page design feature. When validating this page I am told "In HTML 4.0, FONT is deprecated. It may become obsolete in future versions, consider using style sheets instead.". I've had limited experience of using CSS. They are very powerful, but can make a mess of the page when viewed in older browsers, so I'll not mention them further. I'm also avoiding any mention of frames... You should avoid browser specific tags if they mean that a visitor to your page with a different browser will not be able to see relevant items on your page. Here's a quick run down of some more widely supported page layout techniques Font Colour and SizeNetscape/MeSsIE 2.0 and beyond allow you to specify the FONT size and colour<FONT size=5 color="#FF00FF"></FONT> The FONT size can be expressed as one of 1-7 with 3 the normal base FONT. Font size can also expressed relative to the base FONT -2,-1,+1,+2,+3,+4 1 2 3 4 5 6 7 Although MeSsIE 2.0/3.x/4.x and Netscape 2.0/3.0/4.x allow the use of color="red" etc, MeSsIE and Netscape use slightly different names. Only the hexadecimal can be read by older browsers and is needed in some circumstances (e.g. bgcolor and links). To reach the widest audience use hexadecimal. Editing colour is built into most of the current HTML editors and the need for standalone colour pickers has diminished.
Font FacesNetscape 3.x/4.x and MeSsIE 2.0/3.x/4.x allow you to specify a specific FONT. This of course depends on your visitor having a browser that supports this feature and a having that particular FONT installed.<FONT size=5 color="#FF00FF" face="Comic Sans MS">Comic Sans MS</FONT> SpacesThe humble non-breaking space is ignored by many introductions to HTML. It is represented by and creates a space e.g.
How have I achieved the above layout? Well I used a table with border=0 With border=1 it looks like this:
Use View/Source to look at the code if you're interested. It could look like this (<TD align=right> in the right column>
or this (<TABLE border=1 width=75> <TD align=center> )
Hide the border again <TABLE border=0 width=75> <TD align=center>
It works with images as well:
© 1998 Zymous.
|