Back to the 2023 paper

Module I: Introduction to Web Technologies and Architectures

20232m

Differentiate between block tags and inline tags with suitable example.

Worked SolutionAI Assisted
Basis Block tags Inline tags
Layout Start on a new line and take the full available width Stay in the line and take only as much width as their content
Width/height Can be set Ignored (width/height have no effect)
Contains Block and inline elements Only text and other inline elements
Examples <div>, <p>, <h1>, <ul>, <table> <span>, <a>, <b>, <img>, <em>
<div>Block one</div>
<div>Block two</div>          <!-- two separate lines -->
<p>Text with <span>inline</span> and <a href="#">link</a> in one line.</p>

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.