To HTML Content Category Flow

Html elements pre and samp

pre element Specifies that the enclosed text is preformatted and that whitespace should be preserved appropriately and samp element Specifies that the enclosed text is sample text and should be rendered in the browser appropriately. These elements allows child elements from interactive, embedded, heading, sectioning, phrasing, and metadata content categories.

Restore previous example

pre pre and samp

Advanced example

Click the html element name in the punctuation list to advance the example in 'Tryit-Editor':
<a><audio>, <button>, <details>, <embed>, <iframe>, <input>, <keygen>, <label>, <menu>, <object>, <select>, <textarea>, <video>, <canvas>, <img>, <math>, <svg>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <hgroup>, <article>, <aside>, <nav>, <section>, <abbr>, <b>, <bdo>, <br>, <cite>, <code>, <command>, <dataList>, <dfn>, <em>, <i>, <kbd>, <mark>, <meter>, <noscript>, <output>, <progress>, <q>, <ruby>, <samp>, <script>, <small>, <span>, <strong>, <sub>, <sup>, <time>, <var>, <wbr>, <base>, <link>, <meta>, <style>, <title>

HTML element example

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 5.0