
Format the Console.Write Responses
We use string.format to format the data written to the console using the console.write or console.writeline commands. However, it isn’t indented well to make it readable. C# allows you to

We use string.format to format the data written to the console using the console.write or console.writeline commands. However, it isn’t indented well to make it readable. C# allows you to

Java has an API called BigInteger and it is easily able to identify if the number under consideration is a prime number or not. Code snippet: import java.math.BigInteger;public class ProbablePrime{

You may want to know if your timezone supports Daylight Saving Time programmatically. This can be easily determined with the code below: Listing 1. Sample Code import java.util.TimeZone;public class DaylightSavingsTime{

The System.Web.HttpBroswerCapabilities?has an important property called “Crawler” that enables us to handle requests from crawlers. Please check out the example below: Var isCrawler = ((System.Web.Configuration.HttpCapabilitiesBase)Request.Browser).Crawler;

Using image files for your page background adds additional overhead for the HTML pages as they have to fetch the images via an explicit request and sometimes that can be

The HTML tag creates an inline frame, used to embed another document into your current HTML page. This element is great because you can include content such as advertising banners,

There are cases in which we might want to warn the user before an attempt is made to download a large file, or we might simply be interested to know

Images with absolute positioning can be clipped very easily with the CSS Clip property. The syntax is as below. .clippedImageStyle { position: absolute; clip: rect(100px, 150px, 175px, 30px);}

With the  tag, you can scroll the text from top to bottom, from bottom to top, from left to right, from right to left, and you can also increase writing.