Found 8591 Articles for Front End Technology

What is greater-than sign (>) selector in CSS?

Shubham Vora
Updated on 27-Apr-2023 15:32:27

3K+ Views

In CSS, the ‘>’ sign is not used to compare two values like in other programming languages. Here, we use the greater than sign (>) as a selector. In CSS, selectors are used to selecting single or multiple HTML elements. Whenever we use the greater than sign in the selector, it selects the direct children of the parent element but not that are nested at deep. Syntax Users can follow the syntax below to use the greater than sign in the CSS selector. selecter1>selector2 { /* CSS code */ } In the above syntax, ‘selector1’ is ... Read More

What is Graceful Degradation in CSS?

Shubham Vora
Updated on 27-Apr-2023 15:30:14

181 Views

What is Graceful Degradation? If you are an experienced web developer, you may have heard the graceful degradation word before. Before we learn about the graceful degradation in web development, let’s break down the word. The meaning of graceful is elegant or beautiful, and degradation is breaking or falling down. So, the overall meaning of the graceful degradation word is that it makes the feature elegant while it breaks. Developers use the graceful degradation term in web development. It provides various techniques so that any website or application can work correctly in less capable browsers. For example, modern browsers support ... Read More

What is font-family -apple-system?

Shubham Vora
Updated on 27-Apr-2023 15:26:32

3K+ Views

In CSS, the ‘font-family’ property is used to set the fonts for the text content of the HTML element. It takes the multiple font names as a value. If the browser does not support the first font, it sets the next font style for the HTML element. Users can follow the syntax below to use the ‘font-family’ CSS property. font-family: value1, value2, value3, ... The ‘-apple-system’ value of the ‘font-family’ CSS property allows developers to set the same font for the HTML content of the web page, which the Apple operating system has. It means we can set ... Read More

What is Float Containment in CSS?

Shubham Vora
Updated on 27-Apr-2023 15:24:05

183 Views

First, let’s understand float containment before starting this tutorial. So, Float containment is a technique used in the CSS to control the layout of the web page elements. Whenever we set the ‘float’ property for any HTML element, it automatically gets removed from the original document flow of the web page, but it remains in the viewport. So, developers can face issues like the parent div element not expanding according to the dimensions of the child div element. Let’s understand it via the example below. Example In the example below, we have a ‘parent’ div element containing the text and ... Read More

What is a @extend directive in SASS?

Shubham Vora
Updated on 27-Apr-2023 15:19:50

168 Views

The SASS allows developers to write more readable code and manipulate it in a better way. It contains multiple directives such as @media, @content, @include, @mixin, @extend, etc., providing some functionality so developers can write better code than normal CSS. In this tutorial, we will learn about the @directive in SASS. The @extend directive allows developers to extend the CSS code. However, mixins also extend the CSS code and avoid repetition. The @extend directive also allows us to avoid the repetitions of the code. For example, if you have a common CSS for the application's fonts and need different font ... Read More

What does the CSS rule “clear: both” do?

Shubham Vora
Updated on 27-Apr-2023 15:16:29

484 Views

We use the ‘float’ property in CSS to keep elements floating on the left or right side. So, whenever we set the ‘float’ property for any HTML element, it is taken out from the document's normal flow, and sometimes it can create lots of problems. The ‘clear’ CSS property allows developers to set the position of the element which is next to the floating element. However, it always pushes the next element below the floating elements. The ‘clear’ property of CSS can have 4 different values: ' left’, ‘right’, ‘both’, and ‘inherit’. The ‘left’ value is used to push the ... Read More

What can be done with style sheets that can not be accomplished with regular HTML ?

Shubham Vora
Updated on 27-Apr-2023 15:13:44

136 Views

Developers can use CSS to describe the presentation of the web page content. The stylesheet contains the CSS code, which we link with the web page for a better representation of the web page. Why do we Require to use a Stylesheet with an HTML Web Page? For beginners, the first question comes to mind is that why do we require to use the stylesheet? Can’t we create web pages without using the stylesheet? The answer is yes. You can create a web page without using the stylesheet. HTML is only used to add content to the web page, and ... Read More

Using Lists in Snack

Saba Hilal
Updated on 02-May-2023 14:34:09

251 Views

Sometimes, the task is to store and display several items as a List. For this React Native component, Flatlist can be used. The FlatList can also be made selectable or clickable. In this article, the React native and javascript code is shown with two different examples where first the items of a list are stored as an array of key-value pairs identifiable with a unique id and then fetched and rendered. Algorithm Algorithm-1 Step 1 − Import FlatList, Text and View from 'react-native'. Step 2 − Make the App.js and write the code for storing a list. The list is ... Read More

Making Two Screen App in Snack

Saba Hilal
Updated on 02-May-2023 14:25:07

450 Views

In React native apps, multiple screens are often needed. And the user needs to go from one screen to the other screen. In this article, two different approaches are used to make the two-screen apps where the user can go from one screen to the other and back. In Example 1, the createStackNavigator module from 'react-navigation' is used to implement the navigation while in Example 2, for creating the navigation the createSwitchNavigator is used. Algorithm Algorithm 1 Step 1 − Import createStackNavigator from 'react-navigation' Step 2 − Make the App.js and write the code for navigation from one screen ... Read More

Using data in JSON format in Snack

Saba Hilal
Updated on 02-May-2023 14:43:09

702 Views

There are lots of ways to use data with apps made with Snack Expo. Sometimes the data is stored as JSON, that mean JavaScript Object Notation. In this format, the data can be stored easily as Key-Value pairs and can also be converted to a CSV file. In this article, using javascript on Snack, the methods to use JSON data are specified. In example 1, the method to read this data and to display it as a table is given. In the second example, the methods of saving the JSON data as a CSV file and to download it, is ... Read More

Advertisements