Check out example codes for "w3schools". It will help you in understanding the concepts better.

Code Example 1

body {

  background-color: lightblue;
}


h1 {

  color: white;

  text-align: center;
}


p {

  font-family: verdana;

  font-size: 20px;
}

Code Example 2

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

Code Example 3

class Person:
  def __init__(self, fname, lname):
    
  self.firstname = fname
    self.lastname = lname

  
  def printname(self):
    print(self.firstname, 
  self.lastname)

#Use the Person class to create an object, and then 
  execute the printname method:

x = Person("John", "Doe")

  x.printname()

Code Example 4

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


<script>

function myFunction() {

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

  x.style.fontSize = "25px"; 

  x.style.color = "red"; 
}

</script>

Code Example 5

"Hello World";

Code Example 6

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();
    }
}

Code Example 7

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

  for x in thislist:
  print(x)

Learn ReactJs, React Native from akashmittal.com