C C++ Java Data Structure Python JavaScript CSS Ajax PL/SQL PHP Puzzles C programs C++ programs Java programs

Home » Code snippets

HTML, JavaScript, CSS, jQuery Code Snippets/ Examples

This section contains Source Code Snippets/Examples on HTML, JavaScript, CSS and jQuery. Here you will find most useful and popular source codes.

List of all JavaScript, CSS, jQuery Source Code Snippets/Examples




How to change the color of a hyperlink text using CSS in HTML?
CSS is used to provide styling in html elements. A hyperlink is a link which transfers you to one page to another page which works only by clicking the text or image. So, in this we will learn how we can change the color of a hyperlink text using CSS in HTML?

How to change button color in HTML?
In this we will see how we can change color of button as well as text written on button using CSS in HTML.

How to change the font-size with JavaScript?
Learn: How to change the font size of HTM text using JavaScript? Font size on a webpage might look beautiful, but it is of no use when someone with eye problem can't read it. But with JavaScript, we can remove this problem by manually increasing / decreasing the font-size.

JavaScript Reverse print an array.
Here, we will learn how we can print the array elements in reverse order in JavaScript?

Template literals in JavaScript.
In this article of JavaScript, we are going to learn about the Template literals in JavaScript - Template literals are the quotations used for specifying strings using ` (backtick) symbol. Just like the '/" quotes, they are used to denote the beginning and end of the string.

How to get the extension of a file using JavaScript?
In this article, we will learn how to get/find the extension of any file in JavaScript? This article contains the JavaScript code with explanation to get the file’s extension.

The JavaScript forEach method in detail.
In this article, we are going to learn about forEach method in JavaScript in detail with examples.

Generate random number within a range in JavaScript.
JavaScript code to generate random numbers within a range - In this article, we will learn how we can generate a random number using Math.random() and some mathematical manipulation between a range?

How to change the font size of a particular paragraph using CSS class and id in HTML?
Here, we will learn how we can change the font size of the text written in a particular paragraph using CSS class and id in HTML?

What is the difference between 'ID' and 'CLASS' attribute in HTML?
In this article, we will learn about the “Id” and “Class” attributes in HTML and what are the differences between them?

What is responsive Web Design aka RWD?
Learn: how to make a webpage responsive? In this article we are going to learn to make web design responsive.

Make a drop-cap effect using CSS.
Learn: How to make drop-case effect using CSS? This article contains detailed tutorial to make drop-case effect using CSS.

Creating a loading animation with CSS.
Learn: How to create loading animation in CSS? In this article we are going to learn creating loading animation in CSS, article contains CSS code and DEMO file.

Custom Radio Button Styling with CSS.
In this article, we will learn how to customize radio button styling using CSS (Cascading Style Sheet)?

JavaScript program to create an object from a function.
Learn: Create an object from a function in JavaScript; here we will learn making an object through function.

JavaScript program to split the keywords in the string.
Learn: How to split the keywords in the string using JavaScript code? Here is a program of JavaScript which is used to split string in keywords separated by some delimiters.

JavaScript program to check if the variable is a valid string variable.
This JavaScript program can be used to validate the string, to check whether value of a variable is a string or not.

JavaScript Program to print sum of range with steps.
Learn: How to sum of the numbers through the range function in JavaScript? Range() takes two arguments start and end along with an optional argument step to determine step.

JavaScript Program to create a power function and print the result.
JavaScript program to create a power function that accepts two parameters, base and exponent and prints the final result.

Basic Shapes in CSS.
Learn: How to create basic shapes like circle, rectangle, Triangle, square using Cascading Style Sheet (CSS)?

JavaScript to detect whether page is load on Mobile or Desktop.
Learn: How to detect whether the website is being viewed from a Smartphone device or desktop computer.