I'd and class in the html

technical talkiess
0

 <!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Ids and class </title>

</head>

<body>

    <h1>Class and id in html</h1>

    <!-- id is unique  -->

    <div id="st"></div>

    <!-- class is not unique you give in multiple element -->

    <div id="test" class="test1">

        

    </div>

</body>

</html>

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)