line

HTML 3.2(ish) Sampler

line

The purpose of this document is to have a source of correctly written HTML bits and pieces that can be copied when writing a new page if required. Parts of the document are not valid HTML 3.2, these are indicated in red, they are there to check different browsers' performance on off-beat code. It is also to have a standard sheet of all the things in HTML 3.2 to see how they come out on other browsers.

The trick of showing the page centred on a wide screen with a brown background ain't valid either, but it makes it much more readable.


If you could make use of Lorum Ipsum, then you can download text files here for inclusion in whatever DTP projects you've got on. Just download, cut to size and paste in place.

1 kbyte-155 Words,   5 kbytes-753 Words,   10 kbytes-1512 Words,   50 kbytes-7585 Words.
This whole document should have a grey speckled background in a 256 colour screen mode, and this writing only should be dark green.
 
show off
 
This is the table's caption
This is a manipulated table
The side columns have "pixel fixed" width of 50, and an   to force the cell's border to show on the left of the Lorem Ipsum only (in theory). Here is some writing written to fill up this little box

This is 1k of justified Lorem Ipsum for size.

(Justification is not valid HTML 3.2)
  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In hac habitasse platea dictumst. Suspendisse condimentum. Ut fermentum eros nec justo. Ut mi est, tristique quis, convallis et, accumsan vel, mauris. In placerat. Nunc blandit luctus nibh. Sed rutrum, felis nec lacinia vulputate, purus risus hendrerit mi, vel dictum dui sapien vel tellus. Etiam vestibulum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Suspendisse purus justo, gravida sed, ultricies eget, convallis nec, wisi. Mauris purus. Duis pulvinar tortor ac ante. Quisque tempor, turpis non porttitor semper, ipsum est rhoncus erat, quis consequat eros sem non sapien. Etiam blandit, quam sit amet porta iaculis, wisi dolor semper ipsum, quis lobortis nulla velit sed pede. Sed semper, enim sed rutrum pretium, nibh ipsum condimentum ante, vitae sagittis nunc augue id lorem. Pellentesque facilisis nulla ut magna. Ut vel massa. Integer malesuada scelerisque est. Quisque nunc. In sapien. Donec vestibulum. Ut lacinia ante vel ante.

GoUp . . Back    



This is a table too, with this caption aligned to the bottom

This is highlight No.1

This is highlight No.2

This is highlight No.3

This is highlight No.4

This is highlight No.5
This is highlight No.6

DSE
This is me



There should be a coloured button here: button followed by this text, all on the same line.



Text Sizes


Here is some text in <font size=7>.
This is in size 6 for comparison.
This is in size 5 for comparison.
This is in size 4 for comparison.
This is in size 3 for comparison.
This is in size 2 for comparison.
This is in size 1 for comparison.
A rather solid line

Lots of Types of Lists


  1. Here is an unordered list with no markers defined (ie default)
    • First item in the list.
    • Second item on the list
      with some qualification after a line break.
    • Third item on the list,

      consisting of the description followed by a paragraph describing what the third item on the list consists of after a paragraph break.

    • Fourth item on the list.
  2. Here is an unordered list with disc markers
    • First item in the list.
    • Second item on the list
      with some qualification after a line break.
    • Third item on the list.
  3. Here is an unordered list with square markers
    • First item in the list.
    • Second item on the list
      with some qualification after a line break.
    • Third item on the list.
  4. Here is an unordered list with circle markers
    • First item in the list.
    • Second item on the list
      with some qualification after a line break.
    • Third item on the list.

  5. Here is an ordered list
    1. First item in the list.
    2. Second item on the list
      with some qualification after a line break.
    3. Third item on the list,

      consisting of the description followed by a paragraph describing what the third item on the list consists of after a paragraph break.

    4. Fourth item on the list.
  6. Some very short lists with different effects, firstly <COMPACT> :-
    1. First item in the list.
    2. Second item on the list.
  7. Now <TYPE="a"> :-
    1. First item in the list.
    2. Second item on the list.
  8. Now <TYPE="A"> :-
    1. First item in the list.
    2. Second item on the list.
  9. Now <TYPE="i"> :-
    1. First item in the list.
    2. Second item on the list.
  10. Now <TYPE="I"> :-
    1. First item in the list.
    2. Second item on the list.
  11. And finally, one which starts at seven using <OL START=7> then <LI VALUE=3> :-
    1. First item in the list.
    2. Second item on the list.
    3. Third item in the list.
    4. Fourth item in the list.

  12. Here is a definition list
    Item one
    First item in the list.
    Item two
    Second item on the list
    with some qualification after a line break.
    Item three
    Third item on the list,

    consisting of the description followed by a paragraph describing what the third item on the list consists of after a paragraph break.

    Item four
    Fourth item on the list.


All sorts of Styles and Effects

Ranging and Justification

This sentence is ranged left

This sentence is ranged centre

This sentence is ranged right

If you're lucky this will be justified to fill the complete line so that the right hand margin is not ragged, but beautifully smooth and straight. Not all browsers can handle this, and it's definately not in the HTML 3.2 specification, so use it for finesse, smile not as an essential part of a page's layout. However it can add that final touch of beauty to an already very nice page. The next trick is to fit in the images using < . . hspace=8 vspace=4 . . > to clear some room round them. The one on the left is called after the word "finesse" above, the one on the right is called after the full stop at the end of this sentence.smile Using < align=top/middle/bottom > can not be done when embedded like this. Unfortunately you can not embed a picture into the middle of some text and have the text flow round both sides of it - - what do you want, a DTP package? Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In hac habitasse platea dictumst. Suspendisse condimentum. Ut fermentum eros nec justo. Ut mi est, tristique quis, convallis et, accumsan vel, mauris. In placerat. Nunc blandit luctus nibh. Sed rutrum, felis nec lacinia vulputate, purus risus hendrerit mi, vel dictum dui sapien vel tellus. Etiam vestibulum.



<pre>Pre-formatted text looks like this</pre>

Blockquotes like this : - <blockquote>

Omit needless words.

Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.

- - William Strunk, Jr, 1918
</blockquote>
Addresses look like this : -
Bits of useful HTML/Dan Everard/Dan@DanEverard.co.uk/last revision July 2013

Logical Styles : -
Here is a definition in the <DFN> style.

Here is some emphasised text in <EM> style.

Here is a title shown in <CITE> style.

Here is some code shown in <CODE> style.

Here is a keyboard entry shown in <KBD> style.

Here is a sequence of characters shown in <SAMP> style.

Here is somthing strongly emphasised in <STRONG> style.

And this is a variable done with <VAR> style.


Physical Styles : -
Here is some bold text done in <B> style.

Here is some italic text done in <I> style.

Here is some Typewriter text in <TT> style.

Here is some underlined text in <U> style.

Here is some subscripted text in <SUB> style.

Here is some superscripted text in <SUP> style.

Here is some struck out text in <STRIKE> style.

Both <BIG> and <SMALL> have already been used.


Combinations : -
This is bold-italic and this is italic-bold.

This is <font size=1> with additional super and sub script to check what happens.

This is typewriter text size one and size five.


Character Entities (These are of necessity case sensitive).
The red ones do not validate but are useful to check browsers.
Changing the background colour within a table cell is also not valid.
&AMP; .... &
&LT; ..... <
&GT; ..... >
&AElig; .. Æ
&Aacute; . Á
&Acirc; .. Â
&Agrave; . À
&Aring; .. Å
&Atilde; . Ã
&Auml; ... Ä
&Ccedil; . Ç
&ETH; .... Ð
&Eacute; . É
&Ecirc; .. Ê
&Egrave; . È
&Euml; ... Ë
&Iacute; . Í
&Icirc; .. Î
&Igrave; . Ì
&Iuml; ... Ï
&Ntilde; . Ñ
&Oacute; . Ó
&Ocirc; .. Ô
&Ograve; . Ò
&Oslash; . Ø
&Otilde; . Õ
&Ouml; ... Ö
&THORN; .. Þ
&Uacute; . Ú
&Ucirc; .. Û
&Ugrave; . Ù
&Uuml; ... Ü
&Yacute; . Ý
&amp; .... &
&lt; ..... <
&gt; ..... >
&aelig; .. æ
&aacute; . á
&acirc; .. â
&agrave .. à
&aring; .. å
&atilde; . ã
&auml; ... ä
&ccedil; . ç
&eth; .... ð
&eacute; . é
&ecirc; .. ê
&egrave; . è
&euml; ... ë
&iacute; . í
&icirc ... î
&igrave; . ì
&iuml; ... ï
&ntilde; . ñ
&oacute; . ó
&ocirc; .. ô
&ograve; . ò
&oslash; . ø
&otilde; . õ
&ouml; ... ö
&thorn; .. þ
&uacute; . ú
&ucirc; .. û
&ugrave; . ù
&uuml; ... ü
&yacute; . ý
&yuml; ... ÿ
&szlig; .. ß
&quot; ... "
&ndash; .. –
&mdash; .. —
&ensp; ...  
(Short hard space)
&emsp; ...  
(Long hard space)
&nbsp; ...  
(Non-breakable space)
&copy; ... ©
&trade; .. ™
&reg; .... ®
&iexcl; .. ¡
&pound; .. £
&yen; .... ¥
&brvbar; . ¦
&sect; ... §
&laquo; .. «
&raquo; .. »
&not; .... ¬
&deg; .... °
&plusmn; . ±
&sup1; ... ¹
&sup2; ... ²
&sup3; ... ³
&micro; .. µ
&para; ... ¶
&middot; . ·
&frac14; . ¼
&frac12; . ½
&iquest; . ¿
&frac34; . ¾



 

Form Bits :

(The form script is disabled at the moment)

Your name, please*
Your organisation (if relevant)
Your e-mail address*
 * indicates required entries

How did you find this page? :-
Surfed in
Flew in by magic carpet
Took a wrong turning in an adventure game
Followed the yellow brick road
Other, please state how . .  

How useful do you find this page (on a scale of 0 - 100%)

0 - 25%   26 - 50%   51 - 75%   76 - 100%




Do you have any pets? . . 

How do you exercise your pet? . . 

Is there any other comment you would like to add?




Demo map Go back to Dan's page Jump to Tables section Jump to Text Sizes section Jump to Lists section Jump to Styles section Jump to Escape Codes section Jump to Forms section Jump to the top of the page Go to the colours page outline rectangle
The trick to open a new window for the colours is not in the spec. It uses a property of FRAMES to achieve this.

 



Link to HTML 3.2 Reference Specification (124k).

W3CThe W3C Validation Service
(This document validates, except where marked in red!).

Intel out

Originally created on Acorn Archimedes 440/1
(Updated on Acorn Kinetic RiscPC and VirtualAcorn)
This document © DanE latest update and validation 29th June 1999 then updated again in July 2013