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):

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

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


Code Example 4

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


function myFunction() {

  var x = document.getElementById("demo"); = "25px"; = "red"; 


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[]){          
    public void start(Stage primaryStage) throws Exception { 
        StackPane layout = new StackPane();
        Scene scene = new Scene(layout, 200, 200);  
        TextField text = new TextField();
        primaryStage.setScene(scene);  ;

Code Example 7

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

  for x in thislist:

Learn ReactJs, React Native from