B
B
bpGusar2019-03-11 12:53:55
HTML
bpGusar, 2019-03-11 12:53:55

How to remove line breaks from HTML code?

For example, in the browser the code is displayed like this

<h1>
текст
<em>т</em>
екст
</h1>

How can I make it in one line?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devaldor, 2019-07-06
@devaldor

In the developer tools, the code will be formatted to make it easier to read. This is done by the browser itself, whether the code is compressed or not. If you look at the source code of the page (in Chrome on Windows: Ctrl + U), it will be there in the form in which the HTML file is written, which is open in the browser tab. For your favorite text editor, the plugin is found on Google with the words "minify html [editor name]"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question