HTML - Pre (Preserve)

About

This tag will preserve the original text. A tag that preserves linebreaks

The end of line (line separator) will be untouched.

With CSS

To preserve EOL, inside a div using CSS:

div.code {
  white-space: pre;
}





Discover More
CSS - Block Level (element|box)

Block-level refers to the (HTML) elements that are formatted visually as blocks. See for more information: Except for table boxes, and replaced elements, a block-level box can also be a block container...
HTML - (Flow|Body) Content

Most elements that are used in the body of documents and applications are categorized as flow content. Flow content consists of flow elements intermixed with normal character data. (ifbodhead...
HTML - Code element

The codecode element represents a fragment of computer code. By default, the content text is displayed using the user agent's default monospace font. The following example shows how the element can...
HTML - Palpable content

As a general rule, elements whose content model allows any flow content or phrasing content should have at least one node in its contents: that is palpable content (Can be manipulated ?) and that...
Grid Form With Horizontal Vertical Alignment
How to solve a CSS grid overflow ?

This page will show and explain you why a overflow may happen in a css grid layout context. This simple example shows: a two columns grids that should have the same space because they get...
Java Conceptuel Diagram
Java - Javadoc

Javadoc bundle two concepts: the Javadoc syntax the Javadoc tool to generate the doc Inserts an in-line link with visible text label that points to the documentation for the specified package,...
Compiler
Lexical Mode / Lexer Context

The lexical mode is a lexer property while creating the token. It's also known as: lexer context or lexer state This is generally the only context related data. It permits to apply lexer rules...
Word Recognition Automaton
What is a Lexer ? known also as Tokenizer or Scanner - Lexical Analysis

Lexer are also known as: * Lexical analyzer * Lexical Tokenizer * Lexical Scanner Consider the following expression: A lexer will tokenized it in the following symbol table: Token Lexeme ...



Share this page:
Follow us:
Task Runner