Ankith Reddy has Published 1070 Articles

Error Detection and Correction in Data link Layer

Ankith Reddy

Ankith Reddy

Updated on 02-Sep-2023 10:55:46

79K+ Views

Data-link layer uses error control techniques to ensure that frames, i.e. bit streams of data, are transmitted from the source to the destination with a certain extent of accuracy.ErrorsWhen bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems. The corrupted ... Read More

C++ Program to Implement Stack using array

Ankith Reddy

Ankith Reddy

Updated on 31-Aug-2023 02:13:46

134K+ Views

A stack is an abstract data structure that contains a collection of elements. Stack implements the LIFO mechanism i.e. the element that is pushed at the end is popped out first. Some of the principle operations in the stack are −Push - This adds a data value to the top ... Read More

What would happen if there were no Moon?

Ankith Reddy

Ankith Reddy

Updated on 27-Apr-2022 05:25:47

440 Views

We cannot imagine our night sky without the bright moon. It adds the whole lot of beauty to the nights and has been the main subject for romantic poets for ages.Coming to the science, without the Moon, Earth will not have the steady tilt and scientists say that life on ... Read More

C++ equivalent of instanceof

Ankith Reddy

Ankith Reddy

Updated on 16-Feb-2022 07:41:26

14K+ Views

C++ has no direct method to check one object is an instance of some class type or not. In Java, we can get this kind of facility.In C++11, we can find one item called is_base_of. This will check if the given class is a base of the given object or ... Read More

Reset all properties with CSS

Ankith Reddy

Ankith Reddy

Updated on 06-Jul-2020 11:28:34

555 Views

Use the all property to reset all the properties. Set all property to initial, inherit or unset.ExampleYou can try to run the following code to implement the CSS all propertyLive Demo                    html {             color: blue;          }          #demo {             background-color: yellow;             color: red;             all: inherit;          }                     CSS all property       This is demo text.    

Build Horizontal Navigation Bar with Floating List Items in CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 11:05:06

799 Views

To create a horizontal navigation bar, use the floating list item.ExampleYou can try to run the following code to create a horizontal navigation barLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }                              Home          News          Contact          About          

Create a transparent box with CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 10:51:39

639 Views

To create a transparent box with CSS, you can try to run the following codeExampleLive Demo                    div {             background-color: #808000;             padding: 20px;          }          div.myopacity {             opacity: 0.4;             filter: alpha(opacity=80);          }                     Heading       Check trensparency in the below box:                opacity 0.4                      opacity 1          

Style the document's root element with CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 09:18:45

105 Views

To style document’s root element, use the CSS: root selector.ExampleYou can try to run the following code to implement the: root SelectorLive Demo                    :root {             background: blue;             color: white;          }                     Heading       This is demo text.    

Style element with no "readonly" attribute with CSS

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 09:16:36

316 Views

Use the CSS: read-write selector to select elements with no "readonly" attribute.ExampleYou can try to run the following code to implement the: read-write selectorLive Demo                    input:read-write {             background-color: blue;             color: white;          }                              Subject:          Student:          

Role of CSS :only-of-type Selector

Ankith Reddy

Ankith Reddy

Updated on 01-Jul-2020 08:58:41

78 Views

Use the CSS :only-of-type selector to style every element that is the only element of its parent.ExampleYou can try to run the following code to implement the :only-of-type selectorLive Demo                    p:only-of-type {           ... Read More

Advertisements