Usharani has Published 93 Answers

What is <keygen> tag in HTML?

usharani

usharani

Updated on 24-Jun-2020 07:44:22

The HTML <keygen> tag is used to process Web forms with certificate management systems. The element generates a secure key and submits the public key.The keygen tag supports the following additional attributes −AttributeValueDescriptionautofocus autofocusSpecifies that when the page loads the <keygen> element automatically gets focus.challenge  challengeSpecifies the challenge string to ... Read More

Extend the animation properties in both directions with CSS

usharani

usharani

Updated on 24-Jun-2020 05:58:56

Use the animation-fill-mode property with the value both to extend the animation properties in both directions.ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>          div {             width: 150px;             height: 200px;         ... Read More

How to create an image gallery with CSS

usharani

usharani

Updated on 23-Jun-2020 16:29:42

To create an image gallery with CSS is quite easy. You can try to run the following code to achieve this. A gallery of 3 images is created here, ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>          div.myGallery {           ... Read More

CSS padding-box Value

usharani

usharani

Updated on 23-Jun-2020 15:49:33

Use the CSS background-origin property to set the padding-box value. With the padding-box value, the background image begins from the upper left corner of the padding edge.You can try to run the following code to implement the padding-box value:ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>     ... Read More

Selects all elements with rel=”nofollow” with CSS

usharani

usharani

Updated on 23-Jun-2020 15:25:05

Use the [attribute = ”value”] selector to select elements with a specified attribute and value.You can try to run the following code to implement the CSS [attribute="value"] Selector. Here, we have considered the attribute as rel, ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>         ... Read More

How can we write PHP script to release cursor memory associated with MySQL result?

usharani

usharani

Updated on 22-Jun-2020 14:03:17

As we know that PHP uses the msql_free_result() function to release cursor memory associated with MySQL result. To illustrate it we are having the following example −ExampleIn this example, we are writing the following PHP script that will release the memory after fetching the records from a table named ‘Tutorials_tbl’.<?php ... Read More

Print first letter of each word in a string in C#

usharani

usharani

Updated on 22-Jun-2020 12:58:16

Let’s say the string is −string str = "Never Give Up!";Firstly, split each word −string[] strSplit = str.Split();Now, loop through each word and use the substring method to display the first letter as shown in the following code −Example Live Demousing System; public class Program {    public static void Main() ... Read More

C# Equivalent to Java's Double Brace Initialization?

usharani

usharani

Updated on 22-Jun-2020 12:49:01

Java’s Double Brace Initialization does the same work what a single brace can achieve in C#.Double Brace creates and initialize objects in a single Java expression.Let’s say the following is in Java −ExampleList<String> list = new List<String>() {{    add("One");    add("Two");    add("Three");    add("Four"); }}The same you can ... Read More

How to implement operator overloading in C#?

usharani

usharani

Updated on 22-Jun-2020 12:31:45

Overloaded operators are functions with special names. The keyword operator is used to overload operators followed by the symbol for the operator being definedLet us see how to implement operator overloading −Example Live Demousing System; namespace Demo {    class Box {       private double length; // Length of ... Read More

How to use MySQL DISTINCT clause on multiple columns?

usharani

usharani

Updated on 22-Jun-2020 12:05:52

We can use the DISTINCT clause on more than columns in MySQL. In this case, the uniqueness of rows in the result set would depend on the combination of all columns.ExampleConsider the following table ‘testing’ having 10 rows −mysql> select * from testing; +------+---------+---------+ | id   | fname   ... Read More

Advertisements