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
  • 913
  • 3
  • 10
  • 22

1 Answers1

1

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; 
confile
  • 30,949
  • 47
  • 199
  • 357