Actually, you can (sort of), as long as you set the div to display: inline or float within the paragraph. But I guess it really depends on what you’re trying to do.
I can’t seem to get it to, the div either gets “ejected” from the boundaries of the P and ejects all the text after it as well (display:inline), or it just floats way outside the paragraph (not inside, as it would inside another DIV) and “ejects” the text after as well.
For some reason, I’d assume that both acted as fairly similar elements, but this was a surprise to me.
Actually, you can (sort of), as long as you set the div to display: inline or float within the paragraph. But I guess it really depends on what you’re trying to do.
I can’t seem to get it to, the div either gets “ejected” from the boundaries of the P and ejects all the text after it as well (display:inline), or it just floats way outside the paragraph (not inside, as it would inside another DIV) and “ejects” the text after as well.
For some reason, I’d assume that both acted as fairly similar elements, but this was a surprise to me.