Are line breaks the standard way of manipulating the position of HTML elements?


#1

Question

Are line breaks the standard way of manipulating the position of HTML elements?

Answer

The answer to this is dependent on the elements you are trying to position and can become quite involved. For now, just know that in web development there is a design principle called separation of concerns. This principle guides us to keep our HTML structure distinct from its presentation.

As layout is presentational, we will generally want to use CSS to position our elements.


FAQ: Learn HTML Elements - Intro to HTML - Line Breaks