HTML code script for Case converter

Created on 3 July, 2024 • 123 views

HTML code script for Case converter

<!DOCTYPE html>

<html lang="en">


<head>

 <meta charset="UTF-8">

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

 <title>Case Converter</title>

 <script src="script.js"></script> </head>


<body>

 <h1>Case Converter</h1>

 <div id="container">

  <textarea id="inputText" placeholder="Enter your text here"></textarea>

  <br>

  <select id="caseType">

   <option value="uppercase">UPPER CASE</option>

   <option value="lowercase">lower case</option>

   <option value="titlecase">Title Case</option>

  </select>

  <button onclick="convertCase()">Convert</button>

  <br>

  <p id="outputText"></p>

 </div>

</body>


</html>