ब्लॉक के विपरीत, इनलाइन तत्व एक ही पंक्ति में शुरू होते हैं और केवल आवंटित चौड़ाई लेते हैं। आइए अब डिस्प्ले को लागू करने के लिए एक उदाहरण देखें:सीएसएस में इनलाइन प्रॉपर्टी वैल्यू -
उदाहरण
आइए अब एक उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
span {
background-color: orange;
color: white;
}
p.demo {
display: none;
}
span.demo1 {
display: inline;
}
</style>
</head>
<body>
<h1>Match Details</h1>
<div>
Match will begin at <p class="demo">9AM</p> 10AM on 20th December.
</div>
<div>
Match will end at <span class="demo1">5PM</span> on 20th December.
</div>
</body>
</html> आउटपुट

उदाहरण
आइए अब एक और उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
span#demo {
background-color:orange;
color: white;
display:inline;
}
</style>
</head>
<body>
<h1>Match Details</h1>
<div>
Match will begin at <span id="demo">9AM</span> on 20th December.
</div>
</body>
</html> आउटपुट
