HTMLify

innerText.html
Views: 165 | Author: shubh
// DOM Manipulation 
// innerText properties

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Properties</title>
</head>
<body>
    <style>
        body{
          background-color:aquamarine;
        }
    </style>
  <div>
        <h3>Fruits</h3>
        <ul>
            <li>Mango </li>
            <li>Orange</li>
            <li>Apple</li>
            <li>Banana</li>
        </ul>
    </div>
  <script>
        let div = document.querySelector("div");
 console.dir(div);
 console.dir(div.innerText);
   </script>
</body>
</html>

Comments