Ankith Reddy

Ankith Reddy

730 Articles Published

Articles by Ankith Reddy

730 articles

How to detect HTML5 audio MP3 support

Ankith Reddy
Ankith Reddy
Updated on 13-Mar-2026 283 Views

To detect HTML5 audio MP3 support, use the Modernizr library. Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user's browser. As stated in the official specification, Modernizr provides comprehensive feature detection capabilities for modern web technologies. For detecting HTML5 audio MP3 support, you can also check the User-Agent to detect which browser is used, though this method is less reliable than feature detection. JavaScript Detection Method You can use JavaScript to test HTML5 audio MP3 support directly − function canPlayMP3() { var audio = document.createElement('audio'); ...

Read More

The:last-child selector not working as expected in HTML5

Ankith Reddy
Ankith Reddy
Updated on 13-Mar-2026 489 Views

The :last-child CSS selector selects an element only if it is the last child of its parent, regardless of type or class. A common mistake is expecting it to select the last element of a specific type or class within a parent, but that is not how it works. This is why :last-child often does not behave as expected. When :last-child Works The :last-child selector works when the target element is literally the very last child of its parent. For example, if your selector is a:last-child, it matches only if an tag is the last child inside its parent ...

Read More

Delete a file in C#

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 1K+ Views

Use File.Delete method to delete a file.Firstly, set the path of the file you want to delete.String myPath = @"C:\New\amit.txt";Now, use the File.Delete method to delete the file.File.Delete(myPath);The following is the complete code −Exampleusing System; using System.IO; public class Program {    public static void Main() {       String myPath = @"C:\New\amit.txt";       Console.WriteLine("Deleting File");       File.Delete(myPath);    } }OutputDeleting File

Read More

Make any particular color transparent with CSS Filters

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 1K+ Views

To make any particular color transparent, use Chroma Filter. You can use it with scrollbars also.The following parameter can be used in this filterParameterDescriptionColorThe color that you'd like to be transparent.Implementing the CSS Chroma Filter −                         Text Example:       CSS Tutorials    

Read More

The contains() method of AbstractSequentialList in Java

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 168 Views

The contains() method of AbstractSequentialList in Java is used to check whether an element is in the Collection.The syntax is as followspublic boolean contains(Object ob)Here, ob is the element to be checked. To work with the AbstractSequentialList class in Java, you need to import the following packageimport java.util.AbstractSequentialList;The following is an example to implement AbstractSequentialList contains() method in JavaExampleimport java.util.LinkedList; import java.util.AbstractSequentialList; public class Demo { public static void main(String[] args) { AbstractSequentialList absSequential = new LinkedList(); absSequential.add(250); absSequential.add(320); ...

Read More

HTML <ins> cite Attribute

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 236 Views

The cite attribute of the element is used to set a URL that specified the reason to insert the text. Following is the syntax −Above, we have set url, which is the address to the document explaining the reason to insert the text. Let us now see an example to implement the cite attribute of the element −Example Demo Heading Text is inserted. OutputIn the above example, we have inserted a text using the element −    Text is inserted. Above, we have set the reason of insertion using the cite attribute −cite="new.htm

Read More

DoubleStream of() method in Java

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 275 Views

The DoubleStream class in Java the following two forms of the of() methodThe following of() method returns a sequential DoubleStream containing a single element. Here is the syntaxstatic DoubleStream of(double t)Here, parameter t is the single element.The following of() method returns a sequential ordered stream whose elements are the specified valuesstatic DoubleStream of(double… values)Here, the parameter values are the elements of the new stream.To use the DoubleStream class in Java, import the following packageimport java.util.stream.DoubleStream;The following is an example to implement DoubleStream of() method in JavaExampleimport java.util.stream.DoubleStream; public class Demo { public static void main(String[] args) { ...

Read More

ArrayBlockingQueue size() Method in Java

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 195 Views

To get the number of elements in the queue, use the size() method of the ArrayBlockingQueue class.The syntax is as followsint size()To work with ArrayBlockingQueue class, you need to import the following packageimport java.util.concurrent.ArrayBlockingQueue;The following is an example to implement size() method of Java ArrayBlockingQueue classExampleimport java.util.concurrent.ArrayBlockingQueue; public class Demo { public static void main(String[] args) throws InterruptedException { ArrayBlockingQueue q = new ArrayBlockingQueue(10); q.add(200); q.add(310); q.add(400); ...

Read More

HTML <input> autocomplete Attribute

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 316 Views

The autocomplete attribute of the element allows you to set whether the autocomplete for the input should be on or off. The web browser automatically fills the values if autocomplete is on. This only happens if the user already entered values before.Following is the syntax −Above,  on | off values are to be set for autocomplete to appear or not. Set on if you want the browser to complete the entries based on previously entered values, whereas off doesn’t allow to complete the entries.Let us now see an example to implement the autocomplete attribute of the element −Example ...

Read More

HTML DOM Abbreviation Object

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 359 Views

The element is used in HTML to display abbreviations. The Abbreviation object represent this element.In the below example, we will learn how to access an abbreviation object −Example Demo Heading BCCI Display the abbreviation title Abbreviation Title    function display() {       var a = document.getElementById("myid").title;       document.getElementById("demo").innerHTML = a;    } OutputClick on the button to display the title −

Read More
Showing 1–10 of 730 articles
« Prev 1 2 3 4 5 73 Next »
Advertisements