Ids And Classes in html

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewportcontent="width=device-width, initial-scale=1.0">
    <title>Ids and classes of tag</title>
</head>
<body>
    <!-- ids attribute is use to give unique name to the any tag and it is spacial name that cannot be used by any other tag on this one sheet or page -->
    <!-- class attribute is spacial attribute which ha e spacial properties that are given to class allready and we can defined these propertes of the class and when ever this classuse in any tag these properties operate there / -->
    <!-- to accsess the class tag a simple method to use  .   and before this write tag  -->
    <!-- To access the ids tag simple write  #  after the tag and then write id name after it -->
    <!-- one tag more than one classes can be simply diffrentiate by the space between call name -->
    <!-- but ids can not be more than one -->
    <samp id="Myinlineclass="Myclass">Special class contain properties that can be defined and can anywhere we use class can take these properies but this contain spacial unique id  </samp>
    <samp id="Myinline2class="Myclass2"> </samp>
    <!-- this is simple ids and classes but very important and i am end there in next lecture we will study entities -->
    <p><strong>Thanks You</strong></p>
</body>
</html>

Post a Comment

Let us Know...!

Previous Post Next Post