div ... ⁄div, display in browser
Browser display, div element
- empty div element (start tag, end tag only): does not display in browser
- its children, flow content: the display depends strictly on the nested element
- its content, type text: displays block in browser
Display type: block
Video demonstration div element, view in browser
HTML5 div, browser display, Tutorial
min | video details |
---|---|
00:06 | video tutorial: testing the browser display of the div element |
00:14 | empty div element (start tag, end tag, only) does not display in browser |
00:24 | the content, type text, of the div element displays block in browser |
00:30 | its children, flow content: the browser display depends strictly on the nested element: e.g. inside the block display (div): p element displays block, while a element displays inline, in blue and underlined |
00:44 | the 3rd div on page groups 2 elements: p, a let's see what this means: let's see this group |
00:55 | that's the space the div element takes in page and the 2 grouped elements inside it: p, a |