How can I put div in paragraph? I changed the display to inline, but the browser divide the base paragraph to two element, and div will not member of paragraph.
Div is a block. Span is inline. Both of them are containers.
You have to set display:inline for the div with css.
Of course it won't pass validation so better use span ( inline ) to achieve the same thing.