HTML InDoc Java Practice

In this example below you will see how to do a HTML InDoc Java Practice with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by 19Sballard, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 19Sballard ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>HTML InDoc Java Practice</title>
  
  
  
  
  
</head>

<body>

  <!DOCTYPE html>
<html>
<body>

<p>Convert string to UPPERCASE : And then to lowercase</p>

<button onclick="myFunction()">Uppercase</button>

<p id="demo">Hello World!</p>

  <button onclick="myFunction2()">Lowercase</button>
 
</body>
</html>
  
  

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




</body>

</html>

/*Downloaded from https://www.codeseek.co/19Sballard/html-indoc-java-practice-xXqxaw */
   function myFunction2() {
    var text = document.getElementById("demo").innerHTML;
    document.getElementById("demo").innerHTML = text.toLowerCase();
}
function myFunction() {
    var text = document.getElementById("demo").innerHTML;
    document.getElementById("demo").innerHTML = text.toUpperCase();
}
fumction myFunction1() {
  var text =
   document.getElementById("demo").innerHTML;
  document.getElementById("demo").innerHTML = text.to
}

Comments