Use the disabled attribute to disable an element. The attribute can be used for the following elements: , , , , etc.ExampleYou can try to run the following code to implement disabled attribute − Which sports do you like? Football Cricket Hockey
Use the height attribute in HTML to set the height of an element. You can use the attribute with the following elements − , , , , , etc.ExampleYou can try to run the following code to implement height attribute in HTML − Your browser does not support the video element.
A process is an active program. It can also be said as a program that is under execution. It is more than the program code as it includes the program counter, process stack, registers, program code etc. Compared to this, the program code is only the text section.A process passes through different states as it executes. These states may be different in different operating systems. However, the common process states are explained below with the help of a diagram −NewThis is the state when the process has just been created. It is the initial state in the process life cycle.ReadyIn ... Read More
Use the color attribute in HTML to display the color of the text.Note − This attribute is not supported in HTML5.ExampleYou can try to run the following code to learn how to implement color attribute in HTML − HTML Background Colors This is demo text.
A string is a one dimensional character array that is terminated by a null character. There can be many vowels, consonants, digits and white spaces in a string.For example.String: There are 7 colours in the rainbow Vowels: 12 Consonants: 15 Digits: 1 White spaces: 6A program to find the number of vowels, consonants, digits and white spaces in a string is given as follows.Example Live Demo#include using namespace std; int main() { char str[] = {"Abracadabra 123"}; int vowels, consonants, digits, spaces; vowels = consonants = digits = spaces = 0; for(int i = 0; str[i]!='\0'; ... Read More
Use the autocomplete attribute to enable autocomplete in an HTML form. The autocomplete attribute is used with form elements to set the autocomplete feature on or off. If the autocomplete feature is on, the browser will automatically show values, based on what users entered before in the field.If the autocomplete feature is off, the browser won’t automatically show values, based on what users entered before in the field.The following are the attribute values −S. NoAttribute ValueDescription1OnThis is the default value. Browser automatically complete values based on what users entered before.2OffBrowser won’t complete values based on what users entered before. Users have to type the ... Read More
You can try to run the following code to create a bordered button group with border propertyExampleLive Demo .btn { color: black; background-color: yellow; width: 120px; text-align: center; font-size: 15px; padding: 20px; float: left; border: 3px solid blue; } .mybtn { background-color: orange; } Result Click below for result: Result Result Result Result Result
Use the CSS :hover selector to create hoverable buttons. You can try to run the following code to create hoverable buttons:ExampleLive Demo .btn { background-color: yellow; color: black; text-align: center; font-size: 15px; padding: 20px; border-radius: 15px; border: 3px dashed blue; } .btn:hover { background-color: orange; color: black; border: 3px solid blue; } Result Click below for result: Result
To change the background color of a button, use the background-color property.You can try to run the following code to change button’s background colorExampleLive Demo .btn { background-color: yellow; color: black; text-align: center; font-size: 13px; } Result Click below for result: Result
Grid Container in CSS has grid items. These items are placed inside rows and columns. Let us create aCSS Grid container and set the number of columns in a Grid:ExampleLive Demo .container { display: grid; background-color: blue; grid-template-columns: auto auto; padding: 20px; grid-gap: 20px; } .container > div { background-color: orange; border: 2px solid gray; padding: 35px; font-size: 30px; text-align: center; } Game Board 1 2 3 4 5 6
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP