Home  >  Article  >  Web Front-end  >  HTML Block Elements

HTML Block Elements

王林
王林Original
2024-09-04 16:18:49741browse

Html comprises various elements that will act as a building block of every web page. Different viewpoints exist for each web page, and both the front and back ends will implement logic. Html will have user-defined or customized requirements highlighting web pages like CSS, bootstrap frameworks, etc. In general, CSS style divides HTML elements into two categories for its purpose: 1. block-level elements and 2. inline elements. We already discussed previous articles like span and div element is used for inline elements in HTML and

tag is used for block-level elements in HTML.

Syntax:

<html>
<body>
<div>
----------codes------
----------------------
</div>
</body>
</html>

In general, every HTML tag has its predefined structures and features. Block elements in HTML have different tags we will use in the documents. Some of the tags are listed below.

Tags:

,