PHP Regular Expressions

What is Regex? Regular expressions (regex) are a sequence of specific characters itself. Generally the regex consists of arithmatic operators & alphanumeric characters to construct specific patterns. These patterns are widely used for customized validation as per user requirement. Functions PHP provides us three functions to deal with regular expressions: preg_match: The function is used … Read more

Bootstrap Modal

The Modal components are useful in situations like, when you need to bring the users attention to some message or a popup. These are basically dialog boxes/popup windows that are displayed on top of the page. Creating a Bootstrap Modal The code below illustrates how modals can be created using Bootstrap

Add animation in … Read more

Bootstrap List Groups

In this chapter, we will learn about the different ways in which Bootstrap 4 can help you stylize the List groups Bootstrap Basic List Groups So, the basic contextual class for list groups is the .list-group class. Unordered list or <ul> is the most basic list group that we have and we use the .list-group … Read more

Bootstrap Inputs Group

Inputs groups are special containers that have a form input and some text or icon attached to them that enhances the readability of the input. Bootstrap Basic Input Groups Here are the basic steps for creating and input group: The basic contextual class needed for an input group is the .input-group class. As told before, … Read more

Bootstrap Forms

Bootstrap 4 has a lot to offer for creating some flawless forms various data input purposes in the websites. We have many form layouts and contextual classes that we’ll learn about in this chapter. Let’s have a look: Bootstrap’s Default Settings There are some global styling features that the Form controls automatically get when used … Read more

Bootstrap Dropdowns

The dropdown menus can be stylised and controlled better using the contextual classes provided by Bootstrap. Bootstrap Basic Dropdown It is well known that dropdown menu is basically a list of toggleable options from which you can choose anyone. The basic dropdown menu in Bootstrap can be created using below code:

The basic contextual … Read more

Bootstrap Collapsible

Bootstrap Basic Collapsible Bootstrap Collapsibles can be used to hide/show large amount of content. Here’s the sample code for a basic collapsible element

Here, the .collapse class is the basic contextual class for the collapsible element. You can use this class with elements like <div>; thus, the content can be hidden or made visible … Read more

Bootstrap Carousel

A Carousel in Bootstrap 4 is nothing but a slideshow that can be used for cycling through elements. Bootstrap Creating a Carousel Observe the code below to understand how a Carousel is created.

So here’s what actually happened: .carousel was used to create a Carousel .carousel-indicators was used to add the indicators. These are … Read more

Bootstrap Cards

Bootstrap 4 cards which, basically, are bordered boxes with some content and some padding around it. We can style them for headers, footers, content, colors, etc. Bootstrap 4 Basic Card The basic cards in Bootstrap 4 are created using the .card class. The content inside these cards use the .card-body class.

Header and Footer … Read more

Bootstrap Buttons

The buttons are used for a variety of purposes. Styling them according to their usage not only makes them look good but also understandable to the user. Let’s have a look at the different features that Bootstrap has for buttons. Bootstrap Button Styles Bootstrap 4 has following contextual classes for styling the buttons. .btn: Basic … Read more