The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CHRIS can you explain Re: CHRIS can you explain


I know I’m not Chris, but here goes. The input tag is an inline element. Most HTML elements can be divided into block and inline elements (list is another type IIRC). Block level elements (like div, p, h1, h2, h3…) typically have an intrinsic <br/> after them. IOW there’s 1 per line. Another characteristic of block level elements is being able to size and position them in the layout. In his example, he tells the browser to render his input tags as block elements so he can assign a width to it.