Usharani has Published 93 Answers

How do we set what value is the optimal value for the gauge in HTML?

usharani

usharani

Updated on 03-Mar-2020 10:31:25

To set an optimal value for the gauge in HTML, use the optimum attribute. You can try to run the following code to implement optimum attribute −Example<!DOCTYPE html> <html>    <body>       <h3>Gauge</h3>       <p><meter value = "0.7" high = "0.9" low = "0.1"></meter></p>    </body> </html>Read More

Execute a script when an element's scrollbar is being scrolled in HTML?

usharani

usharani

Updated on 03-Mar-2020 09:36:30

When an element is scrolled, the onscroll attribute triggers. You can try to run the following code to implement onscroll attribute −Example<!DOCTYPE html> <html>    <head>       <style>          #myid {             width   : 250px;             ... Read More

How to specify citation in HTML?

usharani

usharani

Updated on 03-Mar-2020 06:48:41

Use the <cite> tag in HTML to specify citation. Cite can be defined as the title of a work. You can try to run the following code to implement <cite> tag for adding citation −Example<!DOCTYPE html> <html>    <head>       <title>HTML cite Tag</title>    </head>    <body>   ... Read More

How do we add a comment in HTML code?

usharani

usharani

Updated on 03-Mar-2020 05:47:59

The HTML <comment> tag allows authors to comment their HTML code.It is recommended to use <!--....--> to comment your tags. This tag is compatible with all browsers.Note − The <comment> tag deprecated in HTML5. Do not use it.Example<!DOCTYPE html> <html>    <head>       <title>HTML <!--....--> Tag</title>    </head> ... Read More

How to indicate a potential word break point within a <nobr> section in HTML?

usharani

usharani

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

The HTML <wbr> tag defines a potential line breakpoint if needed. This stands for Word Break Opportunity.ExampleYou can try to run the following code to learn how to implement <wbr> tag in HTML −<!DOCTYPE html> <html>    <head>       <title>HTML wbr Tag</title>    </head>    <body>     ... Read More

What are some frequently used mysqlimport options while uploading the data into MySQL table through command line?

usharani

usharani

Updated on 27-Feb-2020 07:32:01

mysqlimport can be run with a number of options. Followings are some options for mysqlimport and their effect on import.OptionAction-r or –replaceCause imported rows to overwrite existing rows if they have the same unique key value.-i or –ignoreIgnore rows that have the same unique key value as existing rows.-f or ... Read More

What is a constructor in Java?

usharani

usharani

Updated on 25-Feb-2020 10:54:41

Constructors are similar to methods but, They do not have any return type.The name of the constructor is same as the name of the class.Every class has a constructor. If we do not explicitly write a constructor for a class, the Java compiler builds a default constructor for that class.Each ... Read More

Arrays in Java

usharani

usharani

Updated on 24-Feb-2020 12:37:45

You can create an array by using the new operator with the following syntax −SyntaxarrayRefVar = new dataType[arraySize];The above statement does two things −It creates an array using new dataType[arraySize].It assigns the reference to the newly created array to the variable arrayRefVar.Declaring an array variable, creating an array, and assigning ... Read More

Breaking out of nested loop in java

usharani

usharani

Updated on 24-Feb-2020 12:17:34

Yes, break statement can be used in nested for loops. It works on the for loop in which it is applied. See the example below.Examplepublic class Tester {    public static void main(String[] args) {       for(int i = 0; i< 2; i++) {         ... Read More

How to create a JAR file?

usharani

usharani

Updated on 24-Feb-2020 09:39:53

You can create a JAR file using the following command.jar cf jar-file input-file(s)  You can also create JAR files using IDE’s. To create a JAR file using eclipse follow the procedure given below.Open the Jar File wizardThe Jar File wizard can be used to export the content of a project ... Read More

Advertisements