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>  

> <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 [...]

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

This archive was generated by hypermail 2.4.0 : Thursday, 30 April 2020 16:21:01 UTC