কম্পিউটার টিউটোরিয়াল

HTML DOM Underline অবজেক্ট

HTML DOM Underline অবজেক্ট HTML-এ <u> এলিমেন্টকে প্রতিনিধিত্ব করে।

<u> এলিমেন্ট তৈরি করা

var uObject = document.createElement("U")

উদাহরণ

<!DOCTYPE html> <html> <head> <title>HTML DOM Underline</title> <style>    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } </style> </head> <body>    <form>          <fieldset>          <legend>HTML-DOM-Underline</legend>          <h2 ><u id="Underline">Warning: </u>This is a Demo Example</h2>          <input type="button" value="Show" onclick="getBetterDisp()">       </fieldset>    </form> <script>    var uObject = document.getElementById("Underline");    function getBetterDisp() {       uObject.style.backgroundColor = '#DC3545';       uObject.style.color = '#FFF';    } </script> </body> </html>

আউটপুট

Show বাটনে ক্লিক করার আগে:

HTML DOM Underline অবজেক্ট

Show বাটনে ক্লিক করার পর:

HTML DOM Underline অবজেক্ট

  1. HTML DOM DD অবজেক্ট

  2. HTML DOM DT অবজেক্ট

  3. HTML DOM HR অবজেক্ট

  4. HTML DOM Ul অবজেক্ট