Maison >interface Web >tutoriel HTML >Bloc HTML en ligne

Bloc HTML en ligne

PHPz
PHPzoriginal
2024-09-04 16:18:57591parcourir

HTML has another type of element called Inline Block Elements. It is only the space occupied and bounded by each and every tag called by defined elements instead of breaking the HTML contents flow. The block-level elements feature mainly we consider as

tags same thing we have an Inline Elements tag called primarily focuses on the inline-block elements; there is a slight difference between inline and inline-block elements it allows the user to set width, the height of the Html elements also we have customized the top, bottom and display the content will be inline-block and also paddings will be initialized if the requirements needed.

Syntax of HTML Inline-Block

The basic syntax is followed below:

Syntax:

<html>
<body>
<p><span> ---some html codes ---</span> </p>
</body>
</html>

The above codes are basic syntax for writing the inline-block elements in html. We have used some sets of pre-defined inline-block elements below.