User:Szucsatti/html inline elements

My problem started when I was trying to put two divs in the same page in the web project I am developing. Everything worked fine until I opened the page in IE. Of course everything was messed up so I did a little search on html elements and their use.

The HTML 4 convention the elements that are permitted within the body tag are are classified in two categories:  Block-level elements Inline elements 

Inline (also knows as text-level) elements typically contain text or other inline elements, and when they are rendered to the screen most of the time they are put in the same line, therefore they can be included in the normal flow of the text. Inline elements can not be put directly inside the body element. Links, anchors, images and objects, the span tag are all considered inline elments.

On the other hand block-level elements are designed to alter the structure of the html document. table, div, form, input are all block-level elements. They may contain other block-level elements, or inline elements. Block-level elements are formatted differently than inline elements. They begin on new lines and they also differ in how they inherit directionality information.

The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents. These elements define content to be inline (SPAN) or block-level (DIV) but impose no other presentational idioms on the content. Thus, authors may use these elements in conjunction with style sheets.

References:

Global structure of an HTML document

HTML elements