George John has Published 1081 Articles

Place autofocus in the text box when a page gets loaded without JavaScript support in HTML?

George John

George John

Updated on 04-Jun-2020 08:25:53

170 Views

The autofocus attribute is a boolean attribute. When present, it specifies that an element should automatically get focus when the page loads. An example is given below                    First Name:          Last Name:                    

What is the difference between SVG and HTML5 Canvas?

George John

George John

Updated on 01-Jun-2020 11:14:08

10K+ Views

The HTML element is a container for SVG graphics. SVG stands for Scalable Vector Graphics. SVG and useful for defining graphics such as boxes, circles, text, etc. SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is ... Read More

Disabling Android's chrome pull-down-to-refresh feature with HTML.

George John

George John

Updated on 01-Jun-2020 10:43:44

478 Views

The refresh button which was until now hidden in the flow menu, has been replaced by pull-down-to-refresh feature in chrome. However, some users do not need this feature in their application.body {    // disables pull-to-refresh    // allows overscroll glow effects overscroll-behavior-y: contain; }The overscroll behaviour property of CSS ... Read More

C# program to implement FizzBuzz

George John

George John

Updated on 20-Apr-2020 08:06:26

4K+ Views

Implementation of FizzBuzz involves printing numbers from 1 to 100. If the numbers are multiples of 3 then Fizz is printed. If they are multiples of 5, then Buzz is printed and if they are multiples of both 3 and 5 then FizzBuzz is printed.A program that demonstrates the implementation ... Read More

Coupling in C#

George John

George John

Updated on 14-Apr-2020 11:09:33

3K+ Views

Coupling shows the relationship between modules in C# or you can say the interdependence between modules.There are two types of coupling i.e tight and loose coupling.Loose CouplingLoose coupling is preferred since through it changing one class will not affect another class. It reduces dependencies on a class. That would mean ... Read More

List files recursively in C#

George John

George John

Updated on 07-Apr-2020 10:06:49

2K+ Views

To get the list of files in a directory, use the SearchOptions.AllDirectories in C#.Firstly, set the directory for which you want the files −string[] myFiles = Directory.GetFiles("D:\New\", "*.*", SearchOption.AllDirectories);The following is an example displaying files from the above mentioned directory −Exampleusing System; using System.Linq; using System.IO; class Program {   ... Read More

What is run time polymorphism in C#?

George John

George John

Updated on 18-Mar-2020 06:22:06

2K+ Views

Runtime polymorphism has method overriding that is also known as dynamic binding or late binding. It is implemented by abstract classes and virtual functions.Abstract ClassesAbstract classes contain abstract methods, which are implemented by the derived class.Let us see an example of abstract classes that implements run time polymorphism −Example Live Demousing System; namespace PolymorphismApplication ... Read More

Fade Out Up Animation Effect with CSS

George John

George John

Updated on 16-Mar-2020 08:12:15

151 Views

To implement Fade Out Up Animation Effect on an image with CSS, you can try to run the following codeExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat; ... Read More

Bounce Out Left Animation Effect with CSS

George John

George John

Updated on 16-Mar-2020 08:03:35

71 Views

To implement Bounce Out Left Animation Effect with CSS, you can try to run the following codeExample                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;         ... Read More

CSS pause-before property

George John

George John

Updated on 16-Mar-2020 07:49:29

77 Views

This property specifies a pause to be observed before speaking an element's content. The possible values aretime − Expresses the pause in absolute time units (seconds and milliseconds).percentage − Refers to the inverse of the value of the speech-rate property. For example, if the speech-rate is 120 words per minute ... Read More

Advertisements