Alexander
18
Q:

w3schools


<!DOCTYPE html>
<html>
<body>

<p>Please input a number between 
5 and 10:</p>

<input id="demo" type="text">
<button type="button" 
onclick="myFunction()">Test Input</button>
<p id="p01"></p>


<script>
function myFunction() {
  var message, x;
  message = 
document.getElementById("p01");
  message.innerHTML = "";

  x = 
document.getElementById("demo").value;
  
try { 
    if(x == "") throw "empty";

      
 if(isNaN(x)) throw "not a number";
    
 x = Number(x);
    if(x < 5) throw 
 "too low";
    if(x > 10) throw "too 
 high";
  }
  catch(err) {
    message.innerHTML = 
"Input is " + err;
  }
}
</script>

</body>
</html>
 
0

   
<button onclick="myFunction()">Click Me!</button>


<script>

function myFunction() {

  var x = document.getElementById("demo");

  x.style.fontSize = "25px"; 

  x.style.color = "red"; 
}

</script>
    
   
0
probally one of the best places to learn a new language
0

<!DOCTYPE html>

<html>

<title>HTML Tutorial</title>

<body>


<h1>This is a heading</h1>

<p>This is a paragraph.</p>


</body>

</html>
   
0
 "Hello World";
0
W3Schools is an educational website for learning web technologies online.

Content includes tutorials and references relating to HTML, CSS, JavaScript,
JSON, PHP, Python, AngularJS, React.js, SQL, Bootstrap, Sass, Node.js, jQuery,
XQuery, AJAX, XML, Raspberry Pi, C++, C# and Java
0
<!DOCTYPE html>

<html>

<title>HTML Tutorial</title>

<body>


<h1>This is a heading</h1>

<p>This is a paragraph.</p>


</body>

</html>
0
package application;
 
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.StackPane;
 
public class Tutorial extends Application {
 
    public static void main(String args[]){          
         launch(args);     
    } 
         
    @Override    
    public void start(Stage primaryStage) throws Exception { 
         
        StackPane layout = new StackPane();
        Scene scene = new Scene(layout, 200, 200);  
         
        TextField text = new TextField();
        layout.getChildren().addAll(text);
     
        primaryStage.setTitle("CodersLegacy");
        primaryStage.setScene(scene);   
        primaryStage.show();
    }
}
0

thislist = ["apple", "banana", "cherry"]

  for x in thislist:
  print(x) 
0

New to Communities?

Join the community