2

I have been told using br elements is a very bad idea, but how would you explain to a "newbie" why it's bad practice?

Here's an example --

<body>
    <h1>Welcome to My Website</h1>
    <br />
    <br />
    <br />
    <br />
    <br />
    <a href='/'>Click Here</a>
    <br />
    <br />
    <br />
    <br />
    <br />
    <p> For any inquiries call (999) 999 9999 </p>
</body>
Joseph
  • 1,003
  • 3
  • 11
  • 25

1 Answers1

2

It is a bad practice because you cannot change and control your layout with css. For example when you want to do a flexbox or a fluent layout you still have this linebreaks in place. Do the line brakes with css using:

display: block; 
Michael
  • 32,527
  • 49
  • 210
  • 370