Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Another Noob Question: Functional equivalent of <img> for HTML file?

Reply
Thread Tools

Another Noob Question: Functional equivalent of <img> for HTML file?

 
 
(Pete Cresswell)
Guest
Posts: n/a
 
      12-14-2004
If I put this in an HTML document:
<img src="../Pix/40th/Hugh Evans.jpg">
a picture of Hugh Evans appears inline in the document.

I'd like to do the same kind with another HTML document instead
of a a graphic. i.e. not just insert a link, but have the entire
document rendered right then and there...

Is there any hope?
--
PeteCresswell
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      12-14-2004
(Pete Cresswell) wrote:

> If I put this in an HTML document:
> <img src="../Pix/40th/Hugh Evans.jpg">


The alt attribute is required, spaces in URIs must be represented as "%20"
not " ", and its usually a good idea to specify height and width attributes
(so the browser can arrange the right amount of space for the image before
it receives the file).

> I'd like to do the same kind with another HTML document instead
> of a a graphic.


The iframe element does exist (although not in HTML 4.01 Strict, which, in
my experience, is recommended by the majority of experts), but it comes
with a host of problems and should be avoided. In almost every case you
would be better off extracting the body of the document and inserting the
HTML there directly into the "outside" document.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
 
Kim André Akerĝ
Guest
Posts: n/a
 
      12-14-2004
"(Pete Cresswell)" <(E-Mail Removed)> skrev i melding
news:(E-Mail Removed)...
> If I put this in an HTML document:
> <img src="../Pix/40th/Hugh Evans.jpg">
> a picture of Hugh Evans appears inline in the document.
>
> I'd like to do the same kind with another HTML document instead
> of a a graphic. i.e. not just insert a link, but have the entire
> document rendered right then and there...
>
> Is there any hope?


A tad reluctant, I'll say: <iframe>

--
Kim André Akerĝ
- http://www.velocityreviews.com/forums/(E-Mail Removed)
(remove NOSPAM to contact me directly)


 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      12-14-2004
On Tue, 14 Dec 2004 19:34:17 GMT, (Pete Cresswell) <(E-Mail Removed)> wrote:

> If I put this in an HTML document:
> <img src="../Pix/40th/Hugh Evans.jpg">
> a picture of Hugh Evans appears inline in the document.
>
> I'd like to do the same kind with another HTML document instead
> of a a graphic. i.e. not just insert a link, but have the entire
> document rendered right then and there...
>
> Is there any hope?



You could have the content of the body element saved as a separate file
and use PHP or SSI include to add the content to both pages.
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      12-14-2004
Previously in alt.html, "(Pete Cresswell)" <(E-Mail Removed)> said:

> I'd like to do the same kind with another HTML document instead
> of a a graphic. i.e. not just insert a link, but have the entire
> document rendered right then and there...


http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      12-14-2004
(Pete Cresswell) wrote:

> If I put this in an HTML document:
> <img src="../Pix/40th/Hugh Evans.jpg">
> a picture of Hugh Evans appears inline in the document.


> I'd like to do the same kind with another HTML document instead
> of a a graphic. i.e. not just insert a link, but have the entire
> document rendered right then and there...


> Is there any hope?
> --


Directly in html? No way possible.
BTW no spaces allowed in image names.


> PeteCresswell



 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      12-14-2004
David Dorward wrote:

> (Pete Cresswell) wrote:


>> If I put this in an HTML document:
>> <img src="../Pix/40th/Hugh Evans.jpg">


> The alt attribute is required, spaces in URIs must be represented as
> "%20" not " ", and its usually a good idea to specify height and width
> attributes (so the browser can arrange the right amount of space for the
> image before it receives the file).


Will you quit with the damn nit pickin about the "alt" stuff?
He was just using the tag as an example, nothing more.
Now if you want to nit pick.....do it this way:
Your tag should read <img
src=http://www.example.com/pix/40th/Hugh-Evans.jpg alt="description of
picture here">

In reality, there will be quotes around what is shown as a link here.

Capiche?


 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      12-14-2004
"Richard" <Anonymous@127.001> wrote:

> Will you quit with the damn nit pickin about the "alt" stuff?


Hopefully not.

> He was just using the tag as an example, nothing more.


When setting an example, set a good example.

> Now if you want to nit pick.....do it this way:
> Your tag should read <img
> src=http://www.example.com/pix/40th/Hugh-Evans.jpg
> alt="description of picture here">


Hopefully not. That's bogus. In addition to being invalid markup, it
presents a complete wrong idea of what an alt attribute means and how
it will be used.

So you would really need to read and understand a lecture on alt
attributes. You will find some of them if you just hang around for a
while, read the good stuff here, and avoid teaching others in matters
you don't understand at all.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      12-15-2004
Jukka K. Korpela wrote:

> "Richard" <Anonymous@127.001> wrote:


>> Will you quit with the damn nit pickin about the "alt" stuff?


> Hopefully not.


>> He was just using the tag as an example, nothing more.


> When setting an example, set a good example.


>> Now if you want to nit pick.....do it this way:
>> Your tag should read <img
>> src=http://www.example.com/pix/40th/Hugh-Evans.jpg
>> alt="description of picture here">


> Hopefully not. That's bogus. In addition to being invalid markup, it
> presents a complete wrong idea of what an alt attribute means and how
> it will be used.


> So you would really need to read and understand a lecture on alt
> attributes. You will find some of them if you just hang around for a
> while, read the good stuff here, and avoid teaching others in matters
> you don't understand at all.


Obviously you work in a 6x6 cubical office all day and never get out of if.
No sense of humor at all.


 
Reply With Quote
 
Dylan Parry
Guest
Posts: n/a
 
      12-15-2004
Richard wrote:

> Obviously you work in a 6x6 cubical office all day and never get out of if.
> No sense of humor at all.


So your crap HTML advice which advocates incorrect and generally poor
usage is supposed to be humorous? I guess I must be watching the wrong
sitcoms.

--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Here a noob, there a noob.... JimDoire MCSE 0 04-10-2008 07:23 PM
yet another noob question mike_wilson1333 Python 30 08-15-2006 10:50 AM
another noob question bout controls Bruce ASP .Net 1 08-18-2005 08:56 PM
HTML Functional Equivalent Of "Include" or "CopyLib"? (Pete Cresswell) HTML 2 11-06-2004 03:39 PM
Another Noob Rob Allen XML 3 10-01-2003 04:23 AM



Advertisments