
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Arjun Thakur has Published 1025 Articles

Arjun Thakur
15K+ Views
Factorial of a non-negative integer n is the product of all the positive integers that are less than or equal to n.For example: The factorial of 4 is 24.4! = 4 * 3 * 2 *1 4! = 24The factorial of an integer can be found using a recursive program ... Read More

Arjun Thakur
3K+ Views
Use the tag in HTML to add a push button. The HTML tag is used for creating a button within HTML form. You can also use tag to create similar buttons.The following are the attributes of the tag −AttributeValueDescriptionautofocusAutofocusSpecifies that the button should have input focus ... Read More

Arjun Thakur
814 Views
You can try to run the following code to fade in on button hover with CSSExampleLive Demo .btn { background-color: orange; color: white; padding: 10px; text-align: center; font-size: 16px; margin: 5px; opacity: 0.5; transition: 0.5s; display: inline-block; text-decoration: none; cursor: pointer; } .btn:hover { opacity: 2 } Result

Arjun Thakur
185 Views
To center an image, use the margin-left, margin-right and block CSS properties. You can try to run the following code to center an imageExampleLive Demo img { border: 2px solid orange; border-radius: 3px; padding: 7px; } img { display: block; margin-left: auto; margin-right: auto; width: 50%; }

Arjun Thakur
2K+ Views
Use the element ~ element selector to select elements preceded by element. You can try to run the following code to implement thisExampleLive Demo p~ul { color: white; background-color: blue; } Demo Website Fruits Vegetables are good for health. Spinach Onion Capsicum Fruits are good for health. Apple Orange Kiwi

Arjun Thakur
375 Views
You can try to run the following code to create a tooltip visible on mouse over. Use the visibility propertyExampleLive demo #mytooltip #mytext { visibility: hidden; width: 100px; background-color: black; ... Read More

Arjun Thakur
100 Views
The JavaScript's + operator is used to add two numbers or join two strings. However, use the contact() method to join two arrays to get a new one. For example, [50, 70].concat([90, 100])The above prints, [50, 70, 90, 100]Let’s see your example. The + operator concats strings, and converts the ... Read More

Arjun Thakur
604 Views
To convert the image into a base64 string using JavaScript, use the FileReader API. You can try to run the following code to get base64string for an image −Example function toDataURL(url, callback) { ... Read More

Arjun Thakur
116 Views
Use the animation-fill-mode property to set a style for the element when the animation is not playingExampleLive Demo div { width: 150px; height: 200px; position: relative; background: red; animation-name: myanim; animation-duration: 2s; animation-fill-mode: backwards; } @keyframes myanim { from {left: 0px; background-color: green;} to {left: 200px; background-color: blue;} }

Arjun Thakur
2K+ Views
The output stream cout allows using manipulators that you can use to set the precision directly on cout and use the fixed format specifier. To get the full precision of a double, you can use the limits library. For example, Example#include #include using namespace std; int main() { ... Read More