[EMAIL PROTECTED] wrote:
I'm curious to know how the rendering engine determines the default
display "type" for elements such as div or p or whatever. or, a div
renders as a block element by default, why does it do that?

is it within the render engine itself, or a default stylesheet
somewhere?

or, does anyone have some links that contain information on this?

thank you much!


It's all part of the definition of HTML.

The HTML and CSS specifications are on the W3C site http://www.w3.org/ but beware: they are written in very technical language.

Any "good" book about HTML ought to give you the same information in a more "user-friendly" language, telling you that, e.g., <div> and <p> are block elements while <a> and <span> are inline elements.

Now about how it's coded in Gecko: I think it gets it from the appropriate DTD (which varies according to the HTML version each page uses), or from some default DTD if there is no <!DOCTYPE at the start of the document, but that's only a guess on my part.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
62. If your doorbell rings, you think hat new mail has arrived.  And then
    you're disappointed that it's only someone at the door.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to