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

CSS Examples

CSS Stripes Background

Learn how to enhance your website's design by creating horizontal, vertical, and diagonal striped backgrounds with simple code examples using CSS gradients.

PHP Examples

Printing Strings in PHP

Learn how to print a string in PHP using echo, print, and printf() function. Discover the nuances of string concatenation, embedding PHP in HTML, and debugging with print_r.

JavaScript

JavaScript Clipboard API

Learn how to implement copy-paste functionalities in your web applications using the JavaScript Clipboard API, enhancing user interaction and data handling.

PHP 8

PHP 8.1 array_is_list()

Discover how to use the PHP 8 array_is_list() function to check if an array is a list. Learn the syntax, parameters, return value, and examples of this function.

CSS Examples

Centering Elements with CSS

Learn how to center HTML elements using CSS. This tutorial covers various simple techniques for centering elements in a webpage horizontally and vertically.

PHP 8

PHP 8.1 Final Class Constants

Discover how to effectively utilize Final Class Constants in PHP 8.1 for robust object-oriented programming. Learn to implement immutable class constants to ensure improved security and consistency in your PHP applications.

PHP 8

PHP 8.1 Intersection Types

Learn how to use Intersection Types in PHP 8.1 to enforce stricter type checking and enhance code flexibility. Discover practical examples and best practices

JSP

JSP - Database Connection

Learn how to connect a database in Java Server Pages (JSP). This tutorial guides you through the process with clear steps and code examples.

PHP

PHP Namespaces

Discover how PHP namespaces organize code, preventing naming conflicts and reusing code. Simplify your PHP projects with our step-by-step guide on implementing namespaces.

JavaScript

JavaScript Map and Set

This tutorial explains how to use JavaScript's Map and Set data structures. Learn how these powerful features from ES6 can improve the efficiency and readability of your code.

JSP

JSP - Redirect and Forward

Learn how to implement page redirection and forwarding in JSP. Understand the differences between these navigation methods and their syntax, and explore practical examples to enhance your web app's UX.

JSP

JSP - JSTL Core <c:forTokens> Tag

Learn how to use the JSTL Core <c:forTokens> tag in JSP to iterate over tokens in a string. This tutorial provides clear examples and explanations for efficient web development.

JSP

JSP - JSTL Core <c:foreach> Tag

Explore using the JSTL Core <c:foreach> tag in JSP for iterating over various data structures such as arrays, lists, and maps. This tutorial guides you through practical examples to implement this tag effectively in your JSP projects.

JavaScript

JavaScript Async/Await

Master asynchronous programming in JavaScript with this comprehensive tutorial on async/await. Learn to write clean, efficient, and easy-to-understand asynchronous code with practical examples.

JavaScript

JavaScript Rest Parameter

Enhance your coding efficiency and readability by learning to handle an indefinite number of function arguments effectively with JavaScript Rest Parameter, explained with examples.