Abhinanda Shri has Published 74 Articles

How to use a novalidate attribute in HTML?

Abhinanda Shri

Abhinanda Shri

Updated on 12-Mar-2020 12:21:10

271 Views

The novalidate attribute in HTML is used to signify that the form won’t get validated on submit. It is a Boolean attribute.You can try to run the following code to learn how to use novalidate attribute in HTML. In the following example, if you will add text in the ... Read More

Incremental Java infinite loop

Abhinanda Shri

Abhinanda Shri

Updated on 12-Mar-2020 12:18:35

117 Views

ExampleFollowing is the required program −Live Demopublic class Tester {    public static void main(String args[]) {       int i = 0;       do {          i++;          System.out.println(i);       }while (true);    } }The output will keep printing numbers in sequential order.

How to handle very large numbers in Python?

Abhinanda Shri

Abhinanda Shri

Updated on 05-Mar-2020 11:08:24

11K+ Views

You can perform arithmetic operations on large numbers in python directly without worrying about speed. Python supports a "bignum" integer type which can work with arbitrarily large numbers. In Python 2.5+, this type is called long and is separate from the int type, but the interpreter will automatically use whichever ... Read More

How to print current date and time using Python?

Abhinanda Shri

Abhinanda Shri

Updated on 05-Mar-2020 10:31:00

5K+ Views

You can get the current date and time using multiple ways. The easiest way is to use the datetime module. It has a function, now, that gives the current date and time. exampleimport datetime now = datetime.datetime.now() print("Current date and time: ") print(str(now))OutputThis will give the output −2017-12-29 11:24:48.042720You can also ... Read More

How to specify the URL of the page the link goes to in HTML?

Abhinanda Shri

Abhinanda Shri

Updated on 03-Mar-2020 12:34:30

433 Views

Use the href attribute to specify the URL of the page the link goes to in HTML.ExampleYou can try to run the following code to implement href attribute −           HTML href attribute                        Tutorials Point Library of Tutorials          

Set the language of the track text data in HTML

Abhinanda Shri

Abhinanda Shri

Updated on 03-Mar-2020 11:25:44

89 Views

Use the srclang attribute to set the language of the track text data in HTML. For subtitles, use this attribute.ExampleYou can try to run the following code to implement srlang attribute −                                                            Your browser does not support the video element.          

How to set the name of the element in HTML?

Abhinanda Shri

Abhinanda Shri

Updated on 03-Mar-2020 10:29:05

166 Views

Use the name attribute to set the name of the element. You can use this with the following HTML elements: , , , , , , , , , , , ExampleYou can try to run the following code to implement name attribute −           Subject: ... Read More

How to get the value associated with the http-equiv or name attribute in HTML?

Abhinanda Shri

Abhinanda Shri

Updated on 03-Mar-2020 09:38:01

89 Views

Use the content attribute in HTML to get the value associated with http-equiv or name attribute.ExampleYou can try to run the following code to implement the content attribute −                         This is demo text.    

Execute a script when fetching the media data is stopped before it is completely loaded in HTML?

Abhinanda Shri

Abhinanda Shri

Updated on 03-Mar-2020 07:00:28

261 Views

Use the onsuspend attribute in HTML to run the script when the loading of media data suspends, for example, when download completes. It can happen in any of the following situations −When a download is paused When a download completes Media is suspended, etc.The attribute can be used with the ... Read More

How do we define an area in an image map with HTML?

Abhinanda Shri

Abhinanda Shri

Updated on 03-Mar-2020 06:28:47

369 Views

Use the tag to define area in an image map in HTML.The HTML tag supports the following additional attributes −AttributeValueDescriptionAltTextSpecifies an alternate text for the area.coordsif shape = "rect" then coords = "left, top, right, bottom"if shape = "circ" then coords = "centerx, centery, radius"if shape = "poly" ... Read More

Advertisements