Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Line break in HTML with '\n'

Asked by Karan Trivedi Apr 8, 2025 841 views 1 answer
Share

About this question

Are you wondering why n doesn’t create a visible line break in your HTML output like it does in code or text files? Let’s explore how line breaks actually work in HTML and what the correct way is to display them in a browser.

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.