W3C home > Mailing lists > Public > www-html@w3.org > March 2007

Re: Control Text-file Embedding in HTML-docs

From: Asbjørn Ulsberg <asbjorn@ulsberg.no>
Date: Wed, 28 Mar 2007 18:07:11 +0200
To: "Due Per-VCW437" <Per.Due@motorola.com>, www-html@w3.org
Message-ID: <op.tpwpp9ke5rel5w@quark>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:08 GMT