Free Simple HTML Tutorial | |
Text StructureA page of unstructured text, with no line breaks, no paragraphs and no break from wall to wall text would be difficult to read and look awful! You may have already seen that I have used a line-break tag (<br>) in the examples. This lets you control where the line breaks come, instead of allowing the browser to decide where it is going to word-wrap a line of text.Text online however is usually organised into paragraphs using the paragraph tag. Styles - as we have seen in the text style example can be applied that affect all the text within a paragraph. This style can also control how the paragraph is indented by the browser. Have a play with this: If you play with the size of the browser window then you will see the value of paragraphs quite clearly. The paragraphs flow and always look quite good however narrow the space becomes, whereas manual line breaks start to look bad very quickly! The horizontal rule (<hr>) tag is useful to seperate areas on the page. You can adjust its width to a percentage or an exact width, and change its color. One more html tag is often used to format text content, and because of its universal useability I will introduce it here. This is the div tag (<div>) which has more styling definitions than I will show here. It can be explicitly positioned but we will use it here in what I call its 'flow' mode. This makes use of its float attribute to make the text drift to the left or right of the page and allow other text to flow around it. A div can contain anything else, text, images or links, paragraphs and even other divs.
You now have the basics of text layout. Page layout can also be done with divs but it is easy to make a mistake and get lost. Tables can be used instead for simple pages which I find easier and is actually better because (at the moment) different browsers handle divs slightly differently.
Next: Hyperlinks This site and content © 2006 Malcolm Grandis |
Tutorial Contents
HTML Tutorial Keyword Density Tool Referrersbookmark hit - internal hit - ... - www.bing.com - www.google.com - ... - ... - ... - ... - guiate.org - www.metanomics.net - ... - ... - ... - www.suprasociety.org - ... - www.safa.net - awayarticles.info - ... - wiki.ktb-systeme.de - ... - www.macplora.org - www.rogerstern.com - ... - www.ask.com - www.google.co.nz - www.scape-xp.com - landroidapps.com - www.google.co.uk - ... - www.sports-2.com - www.newyorkerr.net - ... - www.formp3player.com - www.baby-store-1.com - ... - ... - ... - ... - ... - www.wiibuy.biz - www.google.fr - www.google.de - www.google.nl - search.yahoo.com -This list of people who link to this Tutorial page is automagically maintained. Link to us, send traffic, and get listed. Simple. |