KP wrote:[color=blue]
> I want to automatically highlight parts of a webpage (make them
> standout from the rest of the contents).[/color]
Then use stylesheets. For inline content, you can empasize it useing
<strong> or <em> and then style it however you like. For block level
content, you can use a structure like this
<p><em>... entire paragraph here ...</em></p>
Unfortunately there's no semantic structure available that can
empasize (or highlight) entire blocks, but you can use classes. eg. to
highlight a table, you can use:
<table class="important">
or whatever class name you like, and then apply style using a stylesheet.
[color=blue]
> I don't even care if the contents get
> replaced by something else, but I care that the structure of the page
> be preserved as much as possible.[/color]
What's would be the point if the content got replaced? The reason
for highlighting something is usually because the content has some kind
of importance.
[color=blue]
> Things I have already tried.
> Commenting the block...[/color]
What the??? I'm assuming you mean by wrapping the entire block
within <!-- and --> (other than that, I have no idea what you mean).
What on earth would you expect that to do, other than completely remove
the entire contents.
[color=blue]
> Some friend suggested <blink> but this doesn't seem to work all the
> time.[/color]
Your friend is a complete /twit/! <blink> is a non-standard,
netscape proprietary element, which, thankfully, IE does not support.
Nor does IE support the 'text-decoration: blink;' property which,
although it is standardised, has too many usability problems because
blinking content can be extremely difficult to read, and violate the web
content accessibility guidelines (WCAG).
[color=blue]
> I tried <span style="..."> this also doesn't work all the time...[/color]
Avoid using inline style attributes, they fail to seperate content
from presentation, which is one of the aims of using stylesheets.
--
Lachlan Hunt
http://www.lachy.id.au/ lachlan.hunt@lachy.id.au.update.virus.scanners
Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!