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

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 Response Methods

Learn how to use Express.js response methods like res.send(), res.json(), res.status(), and more to efficiently handle HTTP responses in your web applications.

Express.js

Express.js Route Parameters

Learn how to utilize route parameters in Express.js to create dynamic routes capable of handling user input, capturing values, and managing complex routing scenarios.

Express.js

Express.js Middleware

Middleware functions are a crucial feature of Express.js. This tutorial will help you understand the purpose and functionality of middleware in Express.js, along with practical examples of implementing and using middleware in your applications.

Express.js

Express.js Set Up

Learn how to quickly setup the popular Node.js web application framework Express.js by following simple steps.

SCSS

SCSS Nesting

This tutorial will guide you through using nesting in SCSS to streamline and structure your CSS code. You'll learn how to create more organized and maintainable styles by leveraging this powerful feature of SCSS, making your development process more efficient and productive.

SCSS

SCSS Variables

Learn how to use variables in SCSS to manage and reuse values efficiently throughout your stylesheets. This guide covers declaring variables, practical examples, and advanced techniques.

SCSS

SCSS Syntax and Structure

Explore the syntax and structure of SCSS to enhance your CSS development. Understand variables, nesting, mixins, and other features through practical examples.

PHP

PHP Web Form

This tutorial guides you through creating a basic PHP web form. It explains how to design the form's HTML structure, handle its data on the server side using PHP, and ensure the form's data is processed securely and efficiently.

PHP Examples

PHP Program to Convert String Case

Learn how to convert strings to uppercase and lowercase and capitalize words using PHP's built-in functions. Explore with examples using PHP's built-in functions for dynamic text formatting.

JavaScript

JavaScript Strict Equality

Learn how the JavaScript strict equality operator (===) works, its importance in type-safe comparison, and how it differs from the abstract equality operator (==).

JavaScript

JavaScript Factory Pattern

This tutorial guides you on how to apply Factory Pattern in JavaScript. Discover how to use the benefits of this design pattern for creating dynamic objects, which effortlessly create flexible, scalable, and maintainable code structures.