code ... ⁄code, display in browser
Browser display, code element
- empty code element (start tag, end tag only): does not display in browser
- its children, phrasing content: the display depends strictly on the nested element
- its content, type text: displays inline in browser, in monospace font
Display type: inline
Video demonstration code element, view in browser
HTML5 code, browser display, Tutorial
min | video details |
---|---|
00:04 | video tutorial: testing the browser display of the code element |
00:12 | empty code element (start tag, end tag, only) does not display in browser |
00:18 | the content, type text, of the code element displays in browser in monospace font |
00:24 | highlighting the difference of fonts |
00:28 | the 'reverse()' is in monospace font, while the 'reverse' is not |