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

Discussion in 'HTML' started by (Pete Cresswell), Dec 14, 2004.

  1. 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
    (Pete Cresswell), Dec 14, 2004
    #1
    1. Advertising

  2. (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
    David Dorward, Dec 14, 2004
    #2
    1. Advertising

  3. "(Pete Cresswell)" <> skrev i melding
    news:...
    > 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ø
    -
    (remove NOSPAM to contact me directly)
    Kim André Akerø, Dec 14, 2004
    #3
  4. (Pete Cresswell)

    Neal Guest

    On Tue, 14 Dec 2004 19:34:17 GMT, (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?



    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.
    Neal, Dec 14, 2004
    #4
  5. (Pete Cresswell)

    Mark Parnell Guest

    Mark Parnell, Dec 14, 2004
    #5
  6. (Pete Cresswell)

    Richard Guest

    (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
    Richard, Dec 14, 2004
    #6
  7. (Pete Cresswell)

    Richard Guest

    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?
    Richard, Dec 14, 2004
    #7
  8. "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
    Jukka K. Korpela, Dec 14, 2004
    #8
  9. (Pete Cresswell)

    Richard Guest

    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.
    Richard, Dec 15, 2004
    #9
  10. (Pete Cresswell)

    Dylan Parry Guest

    Re: Another Noob Question: Functional equivalent of <img> for HTMLfile?

    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
    Dylan Parry, Dec 15, 2004
    #10
  11. RE/
    >
    >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.


    Sounds like IFrame is a loser.

    Since I'm creating these pages programatically, Ill write a little more code to
    retrieve the body instead of trying to fight nature.

    Thanks for everybody's prompt assistance.

    BTW, "Hugh Evans.jpg" really does work in a link..... It was an inadvertant
    violation of my own personal standards and probably won't pass validation...but
    it did work when I tried it. IE 6.0.
    --
    PeteCresswell
    (Pete Cresswell), Dec 15, 2004
    #11
  12. Re: Another Noob Question: Functional equivalent of <img> for HTMLfile?

    Dylan Parry wrote:
    > 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.


    Don't you see? He's like a village idiot! Watch and laugh.
    Leif K-Brooks, Dec 15, 2004
    #12
  13. (Pete Cresswell)

    tm Guest

    Leif K-Brooks wrote:
    > Dylan Parry wrote:
    > > 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.

    >
    > Don't you see? He's like a village idiot! Watch and laugh.


    news.google "richard the stoopid".
    tm, Dec 15, 2004
    #13
  14. (Pete Cresswell)

    Neal Guest

    Pete Cresswell:

    > BTW, "Hugh Evans.jpg" really does work in a link..... It was an
    > inadvertant
    > violation of my own personal standards and probably won't pass
    > validation...but
    > it did work when I tried it. IE 6.0.


    With all due respect, I could take a dump on a piece of paper, scan it,
    translate it to ASCII, and IE would probably find a way to render it. If
    my college English teacher was as forgiving, I wouldn't have gotten a D on
    my first paper.
    Neal, Dec 15, 2004
    #14
  15. While the city slept, Richard (Anonymous@127.001) feverishly typed...
    > Will you quit with the damn nit pickin about the "alt" stuff?
    > He was just using the tag as an example, nothing more.


    Looks like Richard has the alt.html crystal ball this week! ;-)

    Cheers,
    Nige

    --
    Nigel Moss
    http://www.nigenet.org.uk
    Mail address not valid. , take the DOG. out!
    In the land of the blind, the one-eyed man is very, very busy!
    nice.guy.nige, Dec 15, 2004
    #15
  16. On Tue, 14 Dec 2004 16:17:41 -0600, Richard wrote:

    > BTW no spaces allowed in image names.


    Not true. It is just preferred to not have spaces in file (not just
    image file) names.

    --
    Jeffrey D. Silverman |
    Website | http://www.newtnotes.com

    Drop "PANTS" to reply by email
    Jeffrey Silverman, Dec 15, 2004
    #16
  17. Jeffrey Silverman wrote:
    > On Tue, 14 Dec 2004 16:17:41 -0600, Richard wrote:


    >> BTW no spaces allowed in image names.


    > Not true.


    Partially true, the file name may contain spaces, but the URL may not.
    Spaces must be represented as %20.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Dec 15, 2004
    #17
  18. On Wed, 15 Dec 2004 20:33:06 +0000, David Dorward wrote:

    > Partially true, the file name may contain spaces, but the URL may not.
    > Spaces must be represented as %20.


    But it is still a space, no matter how encoded

    --
    Jeffrey D. Silverman |
    Website | http://www.newtnotes.com

    Drop "PANTS" to reply by email
    Jeffrey Silverman, Dec 15, 2004
    #18
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.austin.rr.com

    how to download img from html img tag

    news.austin.rr.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    505
    Steve C. Orr [MVP, MCSD]
    Apr 27, 2005
  2. (Pete Cresswell)
    Replies:
    2
    Views:
    480
    Eric B. Bednarz
    Nov 6, 2004
  3. Philipp Lenssen

    Problem: <img></img>

    Philipp Lenssen, Jun 27, 2005, in forum: XML
    Replies:
    15
    Views:
    754
    David Håsäther
    Jul 3, 2005
  4. Jopek
    Replies:
    7
    Views:
    397
    dorayme
    Apr 26, 2009
  5. Replies:
    7
    Views:
    177
    Tad McClellan
    Jun 22, 2006
Loading...

Share This Page