Disable Specified Elements in HTML

vanithasree
Updated on 24-Jun-2020 08:26:38

128 Views

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                    

Add Height to HTML Element

Krantik Chavan
Updated on 24-Jun-2020 08:25:38

178 Views

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.          

Different States of a Process

Ricky Barnes
Updated on 24-Jun-2020 08:22:59

15K+ Views

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

Change Text Color of an Element in HTML

Daniol Thomas
Updated on 24-Jun-2020 08:21:37

9K+ Views

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.                                

Count Vowels, Consonants, Digits, and White Spaces in a String using C++

karthikeya Boyini
Updated on 24-Jun-2020 08:20:17

2K+ Views

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

Specify Autocomplete for Form or Input Element in HTML

Smita Kapse
Updated on 24-Jun-2020 08:19:19

165 Views

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

Create a Bordered Button Group with CSS

Chandu yadav
Updated on 24-Jun-2020 08:18:05

449 Views

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          

Create Hoverable Buttons with CSS

Krantik Chavan
Updated on 24-Jun-2020 08:16:45

410 Views

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    

Change Background Color of a Button with CSS

Chandu yadav
Updated on 24-Jun-2020 08:07:39

2K+ Views

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    

Role of CSS Grid Container

Anvi Jain
Updated on 24-Jun-2020 08:06:57

111 Views

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          

Advertisements