Usage of CSS grid-row-gap property

George John
Updated on 24-Jun-2020 08:27:22
Set gap between Grid rows with CSS. You can try to run the following code to implement the grid-row-gap property.ExampleLive Demo                    .container {             display: grid;             background-color: green;             grid-template-columns: auto auto;             padding: 20px;             grid-column-gap: 20px;             grid-row-gap: 20px;          }          .ele {             background-color: orange;             border: 2px solid gray;             padding: 35px;             font-size: 30px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

How to set that the specified element/group of elements should be disabled in HTML?

vanithasree
Updated on 24-Jun-2020 08:26:38
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                    

How to add the height of the element in HTML?

Krantik Chavan
Updated on 24-Jun-2020 08:25:38
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.          

What are the different states of a Process?

Ricky Barnes
Updated on 24-Jun-2020 08:22:59
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

C++ Program to Find Transpose of a Matrix

karthikeya Boyini
Updated on 24-Jun-2020 08:21:39
A matrix is a rectangular array of numbers that is arranged in the form of rows and columns. A transpose of a matrix is a new matrix in which the rows of the original are the columns now and vice versa. For example.A matrix is given below −1 2 3 4 5 6 7 8 9The transpose of the above matrix is as follows.1 4 7 2 5 8 3 6 9A program to find the transpose of a matrix is as follows −Example Live Demo#include

How to change the text color of an element in HTML?

Daniol Thomas
Updated on 24-Jun-2020 08:21:37
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.                                

C++ Program to Find the Length of a String

Samual Sam
Updated on 24-Jun-2020 08:20:42
A string is a one dimensional character array that is terminated by a null character. The length of a string is the number of characters in the string before the null character.For example.char str[] = “The sky is blue”; Number of characters in the above string = 15A program to find the length of a string is given as follows.Example Live Demo#include using namespace std; int main() {    char str[] = "Apple";    int count = 0;    while (str[count] != '\0')    count++;    cout

C++ Program to Find the Number of Vowels, Consonants, Digits and White Spaces in a String

karthikeya Boyini
Updated on 24-Jun-2020 08:20:17
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

How to specify whether the
or the element should have autocomplete enabled in HTML?

Smita Kapse
Updated on 24-Jun-2020 08:19:19
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

C++ Program to Store Information of a Student in a Structure

Samual Sam
Updated on 24-Jun-2020 08:18:52
A structure is a collection of items of different data types. It is very useful in creating complex data structures with different data type records. A structure is defined with the struct keyword.An example of a structure is as follows.struct employee {    int empID;    char name[50];    float salary; };A program that stores student information in a structure is given as follows.Example Live Demo#include using namespace std; struct student {    int rollNo;    char name[50];    float marks;    char grade; }; int main() {    struct student s = { 12 , "Harry" , 90 , 'A' };    cout
Advertisements