Search results
The <pre> tag defines preformatted text. Text in a <pre> element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will be displayed exactly as written in the HTML source code.
- Try It Yourself
The W3Schools online code editor allows you to edit code and...
- Try It Yourself
10 lip 2024 · The <pre> HTML element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or monospaced , font. Whitespace inside this element is displayed as written.
Charakterystyka elementu pre. Element HTML przeznaczony na treść o z góry określonej typografii zawierającej białe znaki, np. spacje, znaki przejścia do nowej linii.
30 wrz 2014 · Learn how to display formatted text with the pre element, such as source code, poems, or ASCII art. Find out how to deal with overflow, text-wrapping, and rendering HTML issues with pre elements.
9 kwi 2012 · PRE. 100%. Tekst preformatowany (interpretuje tabulację, dodatkowe spacje i znak końca linii). Zobacz więcej... Atrybuty: CLASS="klasa". Przypisuje nazwę klasy (CSS) lub nazwy klas do elementu, które muszą być rozdzielone białymi znakami. DIR="kierunek".
The PRE element in HTML. PRE: Preformatted text. Preformatted elements in HTML are displayed with text in a fixed width font, and so are suitable for text which has been formatted for a teletype by some existing formatting system. The optional attribute is: WIDTH. This attribute gives the maximum number of characters which will occur on a line.
The <pre> is used to insert a preformatted text into an HTML document. The spaces and line breaks in the text are preserved. The <pre> tag is usually used to display code, or a text (for example, a poem), where the author himself sets the location of the lines relative to each other.