Block and in-line elements

When formatting text, the concept of 'block' and 'in-line' elements is an important distinction. Block elements have content that is to be separated from neighbouring blocks, usually by starting a new line and by creating a gap above and below the block. Titles and paragraphs are typical examples. The XSL 'block' property is used to create a new block (and the DIV element can be used in an HTML document). In-line elements have content that is to be simply appended to previous text, without creating a new line. Bold and italic phrases are typical examples. The XSL 'inline-sequence' property is used to create an new in-line region (and the SPAN element can be used in an HTML document). It is possible to identify block ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.