Re: Control Text-file Embedding in HTML-docs

On Wed, 28 Mar 2007 09:50:54 +0200, Due Per-VCW437 <Per.Due@motorola.com>  
wrote:

> <object data="file:///D:/HtmlTest/File1.txt">
> </object>
>
> <object data="file:///D:/HtmlTest/File2.txt">
> </object>

Wouldn't it be better to inline the text in a <div> element, like so:

   <div style="width: 10em; overflow: auto">
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit [...]
   </div>

Alternatively, you could use the <iframe> instead of <object> and  
<textarea> instead of <div>. I'd go with inlining the content instead of  
having it externally, though, since that would make it available for all  
UAs, including Google.

-- 
Asbjørn Ulsberg           -=|=-        asbjorn@ulsberg.no
«He's a loathsome offensive brute, yet I can't look away»

Received on Wednesday, 28 March 2007 16:05:13 UTC