Drop caps with pure CSS
Style the first letter of the first paragraph in your text, using a simple CSS selector,
30 seconds of code contains a curated collection of code articles covering a wide range of development needs. The collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
Style the first letter of the first paragraph in your text, using a simple CSS selector,
Truncate both single and multiline text with CSS, adding an ellipsis at the end.
Learn how to traverse the DOM and find all elements related to a given element.
Master URL handling by learning how to get the base URL and the URL parameters as an object in JavaScript.
Learn how to group and count the values of a JavaScript array using simple array methods.
Calculate the factorial of a number, using two different approaches.
Generate an array, containing the Fibonacci sequence, up until the nth term, using two different approaches.
s the sum of the powers of all the numbers from start to end (both inclusive).
Have you ever needed to reset all styles previously applied to a selector to their default values? CSS has the tool just for you!
Pad a string on both sides with the specified character, if it's shorter than the specified length.
Convert a number in bytes to a human-readable string.
Check if the given number falls within the specified numeric range.
Check if a string is an anagram of another string, handling case-insensitivity and special characters.
Learn how to join the segments of a URL and normalize the resulting URL using JavaScript.
Ever needed to move some elements to the end of an array? Here's a simple way to do it.
Convert tabs to spaces, allowing you to control the number of spaces each tab corresponds to.
Smooth-scrolls to the top of the page.
Learn all of the options JavaScript provides for modifying the URL of the current page in the browser without reloading the page.
Eliminate the need for non-semantic markup to clear floats.
Learn how to reorder the arguments of a JavaScript function to fit your needs.
Find the element with the greatest length in a JavaScript array.
Learn how to find the contiguous subarray with the largest sum within an array of numbers in JavaScript.
Calculate the percentage of numbers in the given array that are less or equal to the given value.
Converts the output of any generator function to an array using the spread operator.