dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: Replaced Elements

  1. #1
    Join Date
    Nov 2002
    Location
    England
    Posts
    275

    Replaced Elements

    Can someone give me list of replaced elements please? I'm thinking something like <applet>, <button>, <img>, <input>, <object> & <select>

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    I'm not sure what you mean by "replaced elements".

  3. #3
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    How I understand it replaced elements are just that, for example a image file will replace the code: <img src="" alt="" /> I think you've got most of them.

    An element for which the CSS formatter knows only the intrinsic dimensions. In HTML, IMG, INPUT, TEXTAREA, SELECT, and OBJECT elements can be examples of replaced elements. For example, the content of the IMG element is often replaced by the image that the "src" attribute designates. CSS does not define how the intrinsic dimensions are found
    Last edited by Robert Wellock; 12-02-2002 at 01:06 PM.

  4. #4
    Join Date
    Nov 2002
    Location
    England
    Posts
    275
    Thanks for the quote Rob, I thought it was in a spec, but I was looking in the HTML 4.01, not the CSS one. I was wondering whether <br /> and <hr /> are also replaced elements. I don't think they are.

  5. #5
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by Rick Bull
    I was wondering whether <br /> and <hr /> are also replaced elements. I don't think they are. [/B]
    Hmm, I would think that they are actually.
    <hr> certainly is replaced by a line and <br> could be considered to be replaced by a row break char I guess.

  6. #6
    Join Date
    Nov 2002
    Location
    England
    Posts
    275
    Ah OK. I'm surprised it's not in the HTML 4.01 spec actually (unless it is and I'm missing something )

  7. #7
    Join Date
    Nov 2002
    Posts
    984
    Yepp, it's a bit weird.

    Even more weird is that I just bumped into this link without even looking for it
    http://archivist.incutio.com/css-discuss/?id=3464


    Eric Meyer
    The <br> element has long been a source of
    mystery. What exactly is it? Does it generate an element box, or is
    it simply replaced by a linefeed entity? Does it create a line box?
    Nobody really knows (although plenty of people have offered their own
    interpretations).

  8. #8
    Join Date
    Nov 2002
    Location
    England
    Posts
    275
    Maybe I should write the the W3C and ask for some clarification

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles