How to write Inline And Block elements in html

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewportcontent="width=device-width, initial-scale=1.0">
    <title>INline and block tag in html</title>
</head>
<body>
    <!-- inline meant that a word or line which is written in any tag and take the space only in which it  is written everytag has its own property it may be inline or may be block  -->
    <!-- block is all the tag that get all line space and not thing is that we write one word or complete line   -->
    <!-- to write a paragraph we use p but it is block tag for inline tag we use samp  -->
    <p>This is block paragraph</p>
    <p>This is block paragraph</p>
    <samp>This is inline Paragraph</samp>
    <samp>This is inline Paragraph</samp>
    <!-- this is simple html property so i will end it there and in next we will study idsd and classes mof tags 
     -->
     <p><strong>Thank You</strong></p>
</body>
</html>

Post a Comment

Let us Know...!

Previous Post Next Post