Contents
Getting started DOCTYPE declaration META & TITLE tags Colour & layout Text organization
Tables Validation |
Well, let us begin looking at block-level elements. Remember: these can contain inline elements as well as other block-level elements.
You have to scroll down to see the material, because this text you are reading right now is contained in a table's data cell, and you are not allowed to use plain headers within a data cell [that's what header cells are for.. see the Tables section for more]. And how am I supposed to show you headers if I cannot use them here? Here's some more HTML information that you probably should have: HTML is non-case sensitive and non-white-space sensitive. The former means that you CaN tYPe yOuR tAgS lIkE tHIs fOr AlL iT caReS. The latter means that no matter how many times you press space, it will collapse it into one single space. One way to get around that is the <PRE> tag. You just type <PRE> then your code with all sorts of fancy spacing then </PRE> and your formatting will be saved [It will also automagically add two blank spaces before and after the preformatted text]. The downside to PRE, though, is that it renders everything in a monospaced font but you can get around that using stylesheets [see CSS tips for more]: T h i s is w ha t t h e <P R E > tag p r o duce s in m y co l our s c hem e[No, the spacing won't look like *that* - I did that ;)] |
This is user-friendly centered text
See? You can also use the <P> tag to align things on the right:This text is aligned right
P can also justify text for you:This text is justified. Boy, it's so justified. I know it doesn't look like that yet, but if I type some more in here, at least three lines then you'll see that it is, in fact justified. Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth.
...or you can leave it alone and simply open it with <P> and close it with </P> and it will default to the left. Neat, huh?This is a block quotation. I suppose I should type a whole bunch of words here so you can see what it looks like when you use more than the standard `this is that' thing. Blah, blah. The truth is out there. Follow the white rabbit. Blah, blah. Okay, this should be enoughNote that I did not use any line breaks - as soon as you `activate' BLOCKQUOTE, it automagically breaks two lines, `tabs' over twice and justifies. As soon as you close the tag, it breaks two lines again and returns you to your previous positioning in the document. The beauty of it all is that you can use BLOCKQUOTE within BLOCKQUOTE within BLOCKQUOTE. However, if you use it for things other than long citations, you may confuse your blind visitors, who will think it is a long citation because that is its function. Also note that BLOCKQUOTE cannot be used if you are in a paragraph [don't ask me why]