Learn How to Code

<!DOCTYPE html>
<html>
  <head>
    <title>Webpage Title</title>
  </head>
  <body>
    <h1>Main Heading</h1>
    <p>A paragraph text.</p>
  </body>
</html>
body {
  background-color: #FFF; 
  font-size: 16px;
}
h1 {
  font-size: 2rem;
}
p {
  font-family: Verdana,sans-serif;
}
<button onclick="demoFunc()">Click Me!</button>
<script>
  function demoFunc() {
    let p = document.getElementById("p");
    p.textContent = "You changed this text!";
    p.style.fontSize = "20px";
    p.style.color = "blue";
  }
</script>
<?php
echo "Hello, I'm a PHP script!";
function demoFunc()
{
  echo "It works.";
  echo "Today's date is " . date('Y-m-d');
  echo "Have a great day!";
}
demoFunc();
?>
-- Retrieve active users
SELECT userID, 
       CONCAT(firstName, ' ', lastName) AS name, 
       email,
       registrationDate
FROM users
WHERE status = 1;
-- End of query
-- Output: userID, name, email, registrationDate
def greet():
  return '''Welcome to Python!
It's easy to learn.'''

message = greet()
print(message)
#include<stdio.h>

int main()
{
  printf("First C Program.\n");
  return 0;
}

C++

Programming Language

Learn to create systems software with object-oriented capabilities.

#include <iostream> 

int main()
{
 std::cout<<"First C++ Program.";
 std::cout<<std::endl<<"Its easy to learn.";
}

Java

Programming Language

Learn to create cross-platform applications and enterprise software.

public class Greet {
  static String greet() {
    return "Welcome to Java!";
  }

  public static void main(String[] args) {
    System.out.println(greet());
    System.out.println("It's easy to learn.");
  }
}

JSP

Web Technology

Learn to build dynamic web content with Java integration.

<%@ page contentType="text/html; charset=UTF-8"%>
<html>
<head>
  <title>Quick JSP Demo</title>
</head>
<body>
  <p>Hello, I'm a JSP script!</p>
  <% out.println("Today's date is " + new java.util.Date()); %>
</body>
</html>

Latest, Popular Tutorials

Express.js

Express.js Templating with Pug

Learn to integrate Pug with Express.js for dynamic server-side HTML. This guide covers setup, templates, data passing, and reusable partials for efficient content rendering

PHP 8

PHP 8.0 fdiv Function

Learn how to use PHP 8.0's fdiv function for safe division, handling division by zero gracefully with INF, -INF, and NAN outputs. Perfect for error-free calculations.

PHP 8

PHP 8.0 Mixed Type

Explore PHP 8.0's mixed type—a flexible union type allowing variables, parameters, or return types to accept multiple data types. Learn syntax, examples, limitations, and best practices for using mixed types in PHP functions to enhance flexibility and readability.

PHP 8

PHP 8.1 New Initializers

Learn how to use PHP 8.1's new initializers to set up class properties with arrays, objects, and constants. Create cleaner, more efficient object-oriented code.

CSS3

CSS Variables

Learn how to use CSS variables (custom properties) to simplify your styles, reduce repetitive code, and create dynamic designs with JavaScript features such as theme switching.

HTML5

HTML Offline Web Pages

Discover how to build offline web pages using Service Workers in HTML5. Cache resources like HTML, CSS, and JavaScript for reliable access without internet

JavaScript

JavaScript Closures

Learn what JavaScript closures are, how they work, and how to implement them for private variables, asynchronous code, and event handlers.

JavaScript

JavaScript Hoisting

Learn about JavaScript hoisting, a behavior that moves variable and function declarations to the top of their scope, and discover best practices to avoid hoisting issues.

Express.js

Express.js Route Handlers

Learn how to implement route handlers in Express.js for GET, POST, PUT, and DELETE requests. Efficiently manage HTTP requests and streamline your Express applications.