The HTML select element represents a control that displays a menu of options. It is used to make drop-down menus so users can choose the value they want. It is a useful feature for gathering data to be sent to a server. The tag is typically used within a form element, with the items to be chosen coded within another tag, . It can also be used as a stand-alone element that is associated with a form via one of its special attributes, . The tag in HTML is associated with numerous attributes. They are discussed below. ... Read More
The HTML input element with the type attribute "radio" represents an option from a group in which no more than one option can be selected at the same time. These groups are typically defined by a number of radio buttons, each of which has the same value in the name attribute. When a radio button is selected, it is typically rendered as a small circle that is filled or highlighted. In contrast to checkbox controls, radio buttons rely heavily on the value attribute. When the form is submitted in HTML, only the selected option is sent along with the form ... Read More
Lists are a collection of items that are thought to be one of the best ways to represent information. The list element in HTML is the one that helps us structure the content on our page. It is one of the most commonly used elements, whether for navigation or for displaying general content. HTML allows us to represent lists in three ways: ordered lists, unordered lists, and description lists. Unordered List: This type of list is used to represent HTML items that are not in any particular order. The tag is employed to define unordered lists. Ordered List: ... Read More
The HTML table tag displays data in a tabular format (row * column). A row can have multiple columns. Using the element and the , , and elements, we can create a table to display data in tabular form. Each table's rows, headers, and data are specified by the , , and tags, respectively. The layout of the page is managed by HTML tables. ExampleThe default width setting of a table’s column is demonstrated by the below example. An example of a table in HTML ... Read More
A HTML form is a section of a document that includes controls like text fields, password fields, checkboxes, radio buttons, a submit button, menus, and so on. It allows the user to enter any data like name, email address, password, phone number, and so on that will be sent to the server for processing. HTML forms are required if we want to collect information from site visitors. The syntax for creating a form is given below. --form elements— ExampleHere is an example showing a simple form with its default behavior. Example ... Read More
Polymorphism is one of the most important OOPs concepts. Its is a concept by which we can perform single task in multiple ways. There are two types of polymorphism one is Compile-time polymorphism and another is run-time polymorphism.Method overloading is the example of compile time polymorphism and method overriding is the example of run-time polymorphism.Sr. No.KeyCompile-time polymorphismRuntime polymorphism1BasicCompile time polymorphism means binding is occuring at compile timeR un time polymorphism where at run time we came to know which method is going to invoke2Static/DynamicBindingIt can be achieved through static bindingIt can be achieved through dynamic binding4.InheritanceInheritance is not involvedInheritance is ... Read More
A virtual machine (VM) is a virtual environment which functions as a virtual computer system with its own CPU, memory, network interface, and storage, created on a physical hardware system.VMs are isolated from the rest of the system, and multiple VMs can exist on a single piece of hardware, like a server. That means, it as a simulated image of application software and operating system which is executed on a host computer or a server.It has its own operating system and software that will facilitate the resources to virtual computers.Characteristics of virtual machinesThe characteristics of the virtual machines are as ... Read More
In order to generate random array of integers in Java, we use the nextInt() method of the java.util.Random class. This returns the next random integer value from this random number generator sequence.Declaration − The java.util.Random.nextInt() method is declared as follows −public int nextInt()Let us see a program to generate a random array of integers in Java −Example Live Demoimport java.util.Random; public class Example { public static void main(String[] args) { Random rd = new Random(); // creating Random object int[] arr = new int[5]; for (int i = 0; i
The JSON (JavaScript object notation) Object can be created with JavaScript. JSON Object is always surrounded inside the curly brackets {}. The keys must be in strings and values must be in valid JSON data type. The data types like string, number, object, Boolean, array, and Null will be supported by JSON. The keys and values are separated by a colon(":") and a comma separates each key and value pair. Syntax Following is the syntax of JSON Object − var JSONObj = {}; The below example is the basic declaration of a JSON object in JavaScript − var JSONObj ... Read More
Try to delete the same numbers present in an array. The resultant array consists of unique elements.The logic to delete the duplicate elements in an array is as follows −for(i=0;i
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP