Find Your Tutorial

Get Started
Tutorials
<html lang='en'>
	<head>
		<title>Site Title</title>
		<link href="stylesheet-url.css" rel="stylesheet">
	</head>
	<body>
		<h2>This is a Second Level Heading</h2>
		<p>This is a Paragraph. Write anything in paragraph.</p>
	</body>
</html>
                    
body {
	background: #fff;
	font-family: 'sans-serif', Roboto;
	box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
	font-family: 'Roboto', sans-serif;
	color: #333;
	text-transform: uppercase;
}
a {
	text-decoration: none;
	color: #2a73cc;
	transform: scale(0.9);
}
a:hover {
	transform: scale(1.2);
	color: #153955;
}
                    
@mixin row-setting {
	height: 20px;
	text-align: center;
	a{
		text-decoration: none;
	}
}
@mixin cell-setting {
	@include row-setting;
	td {
		display: inline-block;
		border: 1px solid #ddd;
		box-sizing: border-box;
	}
}
table tr {
	@include cell-setting;
}
                    
<?php
$a = 30; /* global scope variable */
$b = 50; /* Another global variable */
$c;

function addition(){
	global $a, $b, $c;
	$c = $a + $b;
	echo Sum of $a + $b : $c.”;
}
addition();
?>
                    
class Student:
	def __init__(self, f_name, l_name):
		self.firstname = f_name
		self.lastname = l_name

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

# Now Create an instance of object by using the above Student Class and print the name required

name = Student("John", "Doe")
x.printname()
                    
import React, { useState } from 'react';
function MyInput() {
  const [value, setValue] = useState('');

  const handleChange = event => {
    setValue(event.target.value);
  };

  return (
    <input
      type="text"
      value={value}
      onChange={handleChange}
    />
  );
}
                    
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = () => {
  if (xhr.readyState === 4 && xhr.status === 200) {
    console.log(xhr.responseText);
  }
};
xhr.open('GET', 'codelib.css');
xhr.send();
                    
const loadingIcon = document.createElement('div');
loadingIcon.innerHTML = '<i class="fa fa-spinner fa-spin"></i>';
loadingIcon.style.cssText = 'position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center;';
document.body.insertBefore(loadingIcon, document.body.firstChild);

const removeLoadingIcon = () => {
  document.body.removeChild(loadingIcon);
};

const checkLoaded = () => {
  if (document.readyState === 'complete') {
    removeLoadingIcon();
  } else {
    setTimeout(checkLoaded, 100);
  }
};

setTimeout(checkLoaded, 3000);
                    
import java.util.Scanner;
import java.util.Random;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    Random rand = new Random();

    System.out.print("Enter the first number: ");
    int num1 = scan.nextInt();
    System.out.print("Enter the second number: ");
    int num2 = scan.nextInt();

    int min = Math.min(num1, num2);
    int max = Math.max(num1, num2);
    int randomNum = rand.nextInt(max - min + 1) + min;

    System.out.println("Random number between " + min + " and " + max + ": " + randomNum);
  }
}
                    
<div id="accordion">
  <div class="card">
    <div class="card-header" id="headingOne">
      <h5 class="mb-0">
        <button class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
          Collapsible Group Item #1
        </button>
      </h5>
    </div>

    <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
      <!-- Remove the card-body element -->
    </div>
  </div>
  <div class="card">
    <div class="card-header" id="headingTwo">
      <h5 class="mb-0">
        <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
          Collapsible Group Item #2
        </button>
      </h5>
    </div>
    <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
      <!-- Remove the card-body element -->
    </div>
  </div>
  <div class="card">
    <div class="card-header" id="headingThree">
      <h5 class="mb-0">
        <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
          Collapsible Group Item #3
        </button>
      </h5>
    </div>
    <div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
      <!-- Remove the card-body element -->
    </div>
  </div>
</div>
                    
/* A simple Kotlin example to find out the factorial of a number */

fun factorial(n: Int): Long {
	return if (n == 0 || n == 1) {
		1
	} else {
		n * factorial(n - 1)
	}
}

fun main() {
	val number = 5
	val result = factorial(number)
	println("Factorial of $number is: $result")
}
                    

Popular Coding Tutorials

Learn The Code Magic

Learn HTML

HTML stands for Hyper Text Markup Language. It is the basic building block of any web page.

Learn HTML Tutorial

Learn CSS

CSS stands for Cascading Style Sheets. We style, design and present our web pages using CSS.

Learn CSS Tutorial

Learn JavaScript

JavaScript is a scripting language that enables the developer to create dynamic web pages.

Learn JavaScript Tutorial

Learn SASS

SASS is a Programming Language Which is Designed to Make CSS stylesheets Effortlessly.

Learn SASS Tutorial

Learn PHP

PHP stands for Hypertext PreProcessor. It is a Server side Programming/Scripting language.

Learn PHP Tutorial

Learn Kotlin

Kotlin is a modern programming language, preferred by Google for Android development.

Learn Kotlin Tutorial

Learn Python

From web apps to AI, Python unlocks your coding potential across diverse fields.

Learn Python Tutorial

What You'll Learn

Learning Made Easy

Theory

Our main is to provide quality material, therefore, all the tutorials are explained with best possible theory. Everything is in pretty much detail, so feel free to start exploring tutorials.

Examples

Each tutorial is enriched with practical examples, hence, you need not worry about the concepts regarding various aspects of programming. Thus, your learning is made easy by practicums.

References

Apart form the detailed tutorials, there is also a lot of reference material. You can easily go through the reference section and explore your required topics quite efficiently.

Playground

Coding is also made easy by the addition of CodeLAB. CodeLAB lets you write your HTML/CSS/JS programs on the go and get your results immidiately without loading the browsr.

Solutions For You

Just One Click Away

01

Web Designing

We can design responsive websites for your business that will help in boosting your customer reach. Hire Us

Web Development

We can develop websites with advanced functionality to meet your business requirements. Hire Us
02
03

Logo Design

We can design impressive logo for your company that will make your brand more energetic. Hire Us
04