Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to remove line breaks in html

<!-- One way is to delete the used (if used <br> tags). --!>
<!-- The other solution is to use a little css and set the html elements (display to inline). --!>
<!-- Here is a little show: ⬇️ --!>

<!DOCTYPE html>
<html>
  <head>
    <title>Title/page name</title>
<style>
p {
  display:inline;
}
</style>  
</head>
  <body>
      <h1>Hello World! </h1>
<p>Will it break?</p><p> No </p>
  </body>
</html>
 
PREVIOUS NEXT
Tagged: #remove #line #breaks #html
ADD COMMENT
Topic
Name
5+9 =