Let's say a word about the div tag. How to make a block in HTML and skillfully learn how to place it on your web page Examples of web pages from div blocks

Layout begins its journey from the times when code was written in HTML and markup was done using tables. Over time, they moved away from this, and the markup was transferred to CSS. Now there are several layout methods. Modern ones include Flex-box, a set of Bootstrap tools, as well as the latest Grids, which provide enormous opportunities for creators. One of the transitional options in the development of the Web is block layout. Previously used to create entire page markup, it is now considered obsolete, but nevertheless still finds wide use in special cases.

What is block layout?

It replaced the outdated and imperfect tabular one. The page is made up of so-called layers, or blocks, and the closing tag serves as the building blocks

. This is a block tag that takes up the entire width of the parent element and the height to fit the content. Later, such layout began to be called “marvelous”. The basis for page orientation are so-called classes.

At the moment, this type of layout is significantly outdated, and the tag itself

must be used only for its intended purpose. A lot of semantically correct tags have appeared that make it easier to navigate the code. For example, there is a special tag for the navigation menu