|
This element prevents a line of text from wrapping around within the browser window. If a line of text within the tags is too long to fit in the window, a horizontal scroll should appear on the browser to allow the user to view the whole line. Use <WBR>
to insert a soft line break as required.
<NOBR>
Do you remember when dog leads came out? Oooh! The excitement! In the old days before dog leads you used to take your dog for a walk and you'd never see it again. Oh, we used to get through thirty or forty dogs a year!
</NOBR>
Do you remember when dog leads came out? Oooh! The excitement! In the old days before dog leads you used to take your dog for a walk and you'd never see it again. Oh, we used to get through thirty or forty dogs a year!
Element included to provide content for browsers which do not support the <EMBED>
element.
Element included in a frame definition document to provide content for browsers unable to handle frames. For more information see the detailed section on Frames.
Element included to provide content for browsers which do not support layers. I have not addressed Netscape layers in Jalfrezi due to their limited support and the introduction of style sheets as a standard. For more information on layers, see the relevant sections in NetscapeWorld and Netscape's Developer Library.
Element included to provide content for browsers unable to run JavaScript or Visual Basic scripts.
Microsoft Internet Explorer 3 and Netscape Navigator 4 upwards only. Essentially this is similar to the <EMBED>
tag as it is used to insert nonstandard applications such as ActiveX controls and plug-ins. It is currently the focus of the HTML working groups Compound Document draft specification (See W3C)- more information will follow when/if the tag is better defined and more universally accepted.
Used to insert an ordered (numbered) list. For more information see the detailed section on Lists.
Used to insert a form list item. For more information see the detailed section on Forms.
Used to indicate a new paragraph. Most browsers insert a blank line before the new paragraph.
Left, centre or right justifies a paragraph. The justify value spreads the words out evenly across the line, but is only supported by Netscape Navigator 4 and Microsoft Internet Explorer 4 upwards.
<p>
Isn't it annoying though, when you're coming through customs and the customs officers are going through your dirty underwear. Going through your dirty underwear, your old socks.
</p>
<p align="center">
And after ten minutes they say, 'Alright then, I'll give you a pound for the lot.'
</p>
Isn't it annoying though, when you're coming through customs and the customs officers are going through your dirty underwear. Going through your dirty underwear, your old socks.
And after ten minutes they say, 'Alright then, I'll give you a pound for the lot.'
The most useful application of this element is for displaying extracts of programming code as the text is rendered as a fixed-width font and the <BR>
tag is not necessary to cause a line-break. It is sometimes used to display text in a tabular or column format, as all spaces typed in the HTML code are displayed by the browser. Combined with the fixed-width font, this facilitates the alignment of text. Similar to <LISTING>
.
Its best not to use <PRE>
for formatting a few words at a time. Instead use <CODE>
or <TT>
as an alternative. The example shows how tabs can be combined with <PRE>
to lay out text.
<PRE>
x x^2 x^3 x^4
1 1 1 1
2 4 8 16
3 9 27 81
4 16 64 256
5 25 125 625
6 36 216 1296
</PRE>
x x^2 x^3 x^4 1 1 1 1 2 4 8 16 3 9 27 81 4 16 64 256 5 25 125 625 6 36 216 1296
Not currently supported by Netscape browsers. A logical style used to indicate a short quotation, such as the URL of the source document or a message.
URL of this page: <Q>http://vzone.virgin.net/sizzling.jalfrezi/ntoz.htm</Q>
URL of this page:
http://vzone.virgin.net/sizzling.jalfrezi/ntoz.htm
A logical style used to put a horizontal line through text - as in 'red lining'. This is identical to the <STRIKE>
element.
I like driving in my car. It's not quite a <STRIKE>Saab</STRIKE> Jaguar.
I like driving in my car. It's not quite a
SaabJaguar.
Used to show text which is stated literally. Often displays in a fixed-width font.
When in DOS, why is it you often get a <SAMP>bad file name</SAMP> message but never an <SAMP>excellent file name</SAMP> message?
When in DOS, why is it you often get a bad file name message but never an excellent file name message?
Used to contain an in-line script so that browsers to not display the code. HTML 4.0 requires the TYPE
attribute for SCRIPT
in order to specify the scripting language as a content type. For example, use TYPE="text/javascript"
for JavaScript. The LANGUAGE
attribute is optional and does not really serve any purpose other than information. Note the comment tags around the example script, to make sure all browsers hide the code.
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--//hide script from old browsers
document.write( "<br>Last updated "+ document.lastModified );
//end hiding contents -->
</SCRIPT>
Used to insert a form list box. For more information see the detailed section on Forms.
A physical style for displaying text in a relatively smaller font size. Currently only supported by Netscape Navigator 3 and MS Internet Explorer 3 upwards. See also <FONT>
.
What you really need is a <SMALL>triple fried egg chilli chutney</SMALL> sandwich.
What you really need is a triple fried egg chilli chutney sandwich.
Only supported by NCSA Mosaic, this element plays in-line sound. The sound file can be placed anywhere in the document and it will be played when its position is visible in the document window.
Specifies the address of a sound file to be played. The files must be of the .wav format; MIDI files are not supported.
Specifies how many times a sound file will play when activated. If n=-1
, or if LOOP=infinite
, it will play indefinitely. If the tag is placed at the top of the document (assuming the document is viewed from the top), this attribute effectively makes the tag very similar to <bgsound>
and plays the sound in the background. For more information on background sound, see Tips n' Tricks.
Allows you to specify a delay, in seconds, before the sound file plays.
<SOUND SRC="sounds/blakmeat.wav" DELAY=2 LOOP=3>
Only supported by Netscape Navigator 3 upwards, this element inserts blank space on the web page. You can specify horizontal space between words, vertical space between lines or a rectangular area of blank space.
Specifies the type of spacer: horizontal space between words, vertical space between lines or a rectangular area of blank space.
Specifies the horizontal or vertical space in pixels. Not applicable when type
is set to block.
Sets the width of a rectangular spacer block in pixels or as a percentage of window width. Not applicable when type
is set to horizontal or vertical.
Sets the height of a rectangular spacer block in pixels. Not applicable when type
is set to horizontal or vertical.
This attribute only works when TYPE
is set to block. The has exactly the same values as with the <IMG>
tag. You are effectively aligning a blank image.
The left
and right
values create a floating spacer block which finds the next available margin to allow text to wrap. Top
aligns with the top of the tallest item in the line. Texttop
aligns with the top of the tallest text in the line (not always the same as top
). Middle
aligns the middle of the block with the baseline of the current line. Absmiddle
aligns the middle of the block with the middle of the current line. Baseline
aligns the bottom of the block with the baseline of the current line. Bottom
does exactly the same as baseline
. Absbottom
aligns the bottom of the block with the bottom of the current line.
You must use align
if you wish to wrap text around the spacer block.
<SPACER TYPE="block" HEIGHT=50 WIDTH=50% ALIGN="right">
"Geri was well endowed with a feisty character, but could not sing.. I remember being there singing with the girls and saying to her 'Geri, you're out of tune'. She would then go off to the toilet and we would hear her practising in there."<br>
<SPACER TYPE="horizontal" SIZE=200>
Despite their raunchy image, Ian recalls that when they first started rehearsing at Trinity they seemed quite shy. But gradually the girls started to gel and became more boisterous. Ian recalls, "I was standing in the studio one day. The next thing I knew, my trousers were around my ankles. The girls were just standing there laughing their socks off."
The SPAN element is used to apply a style to text which doesn't play any structural role, or where use of standard HTML elements is not desirable. For example, it may be useful for text to be highlighted by rendering it with a different background colour. For text such as this, using a standard HTML element such as <EM> with an applied style, would possibly be inappropriate, because browsers that don't support style sheets would render the text as italicised. The <SPAN> element is recommended in such situations as other browsers simply ignore it.
For more information and examples, see the detailed section on Style Sheets.
A logical style used to put a horizontal line through text - as in 'red lining'. This is identical to the <S>
element.
I like driving in my car. It's not quite a <STRIKE>Saab</STRIKE> Jaguar.
I like driving in my car. It's not quite a
SaabJaguar.
A logical style used to give strong emphasis to a section of text. Usually rendered in bold. See also: <EM>
.
<STRONG>Warning: <STRONG>
no entry without protection. </pre>Warning: no entry without protection.
Used to specifiy the style sheet for a page. For more information see the detailed section on Style Sheets.
A physical style for displaying subscripted text.
Sulphuric acid, H<SUB>2</SUB>S0<SUB>4</SUB>.
Sulphuric acid, H2S04.
A physical style for displaying superscripted text.
Equation of a circle: r<SUP>2</SUP> = x<SUP>2</SUP> + y<SUP>2</SUP>.
Equation of a circle: r2 = x2 + y2.
Used to insert a table. For more information see the detailed section on Tables.
Used to insert a table data cell. For more information see the detailed section on Tables.
Used to insert a form input box. For more information see the detailed section on Forms.
Used to insert a table heading cell. For more information see the detailed section on Tables.
The title element should contain a complete one line summary of the document, ie. "Introduction" is not sufficient, but "Sizzling HTML Jalfrezi: Introduction" would suffice. The title of a loaded document appears at the top of a Netscape window. When coding, the title should be placed within the <HEAD>
tags. A shell document would therefore follow the following format:
<HTML>
<HEAD>
<TITLE>Sizzling HTML Jalfrezi: A Shell Document</TITLE>
</HEAD>
<BODY>
The document in here
</BODY>
</HTML>
Used to insert a table row. For more information see the detailed section on Tables.
A physical style for displaying text in a fixed-width font. See also <CODE>
and <PRE>
.
Courier is an example of a <TT>fixed-width font</TT>.
Courier is an example of a fixed-width font.
A physical style for displaying text underlined. Supported by Netscape Navigator 3.x and MS Internet Explorer 3.x upwards.
Ooh, suits <U>you</U>, sir.
Ooh, suits you sir.
Used to insert an unordered (bullet) list. For more information see the detailed section on Lists.
A physical style for displaying variable, usually as a small fixed-width font or in italic.
When coding, <VAR>LeftIndent()</VAR> must be a variable.
When coding, LeftIndent() must be a variable.
Inserts a soft line break in a block of <NOBR>
text.
<NOBR>
Do you remember when dog leads came out? Oooh! The excitement! In the old days before dog leads you used to take your dog for a walk and you'd never see it again.<WBR> Oh, we used to get through thirty or forty dogs a year!
</NOBR>
Do you remember when dog leads came out? Oooh! The excitement! In the old days before dog leads you used to take your dog for a walk and you'd never see it again. Oh, we used to get through thirty or forty dogs a year!
Used to render blocks of code in a fixed-width font. Any HTML tags within the <XMP>
element are not interpreted at all but passed through literally to the viewer. It should be rendered so that a limit of 80 characters will fit on a line. This element is now obsolete in HTML 4.0.
<XMP>
I like worms. <I>Wiggly, <B>wiggly</B></I> worms.
</XMP>
I like worms. Wiggly, wiggly worms.