O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.7 BLOCK AND INLINE ELEMENTS

A few of the tags cause new lines to be introduced during display (i.e. rendering by the browser). These are called Block elements or Block tags. Block tags create a block of element on an HTML page. A Paragraph tag is defined by <P> element. A DIV element groups a page into sections. It is normally used by developers to update specific DIV sections through Ajax. These are examples of Block elements.

A few others cause the display in-line. Examples include <span>, and <a> elements. The distinction between Block and Inline type of tags is made to facilitate understanding of how styling elements work and used in CSS.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required