Archive for May, 2019
CSS Position Fixed or Sticky on Bottom or Top with Scroll Effects
May 3rd, 2019 Nilesh Chaurasia
CSS Position Fixed Property CSS Fixed position property means that an HTML Element will be fixed on a position. You can be fixed you HTML Elements to anywhere(top, bottom, left, right, center and your required properties), where you want to fix the HTML Elements on the web page. Example 1 – Position Property Fixed example […]
CSS Position Absolute and Relative with Top, Right, Bottom, Left and Center Positing
May 3rd, 2019 Nilesh Chaurasia
CSS Absolute Position Property With the help of absolute positioning of HTML elements, we can design overlapping content. Overlapping means one HTML element over another HTML element. By default, if you design two div elements the second div element content will be just below the first div element content, but suppose you need to place […]
CSS Descendant Selector Applications Syntax and Example Code
May 4th, 2019 Nilesh Chaurasia
CSS Descendant Selector CSS Descendant Selector is used to style a specific child element. The Descendant selector is represented by the white space between the two selectors. Example 1 – CSS Descendant Selector Property In these examples, we have specified that there is an h2 element which is inside a div element. It means this […]
CSS Child Selector
May 6th, 2019 Nilesh Chaurasia
CSS Child Selector CSS Child Selector property is also used to style a direct child element. The Child Selector is represented by the symbol of greater than (>) which is placed between the two selectors. Example 1 – CSS Child Selector Property In the above examples, we have difine that there is a p element […]
Adjacent Sibling CSS Selector with Example of General and Next Sibling Combinator
May 7th, 2019 Nilesh Chaurasia
General Sibling Selector General Sibling Selector is used to apply the design specification to the element which is the sibling of a defined element. This Selector is represented by the tilde (~) symbol. Example 1 – General Sibling Selector In the above examples, we used two tags p tag and span tag. In the above […]
CSS Combinators Selector Applications and Example Codes
May 7th, 2019 Nilesh Chaurasia
CSS Combinators It means that the combination of two selectors with the help of some operators or symbols like greater than (>), plus (+), tilde (~). Below table has the descriptions of these combinators. Some Block Level Elements in HTML Combinators Symbol Description Selector List Comma(,) You can specify multiple selectors for the design specification […]
CSS nth Child Selector and Code Example for First, Second, Odd, Even Syntax
May 10th, 2019 Nilesh Chaurasia
CSS nth Child Selector If you want to select an HTML Element which is the nth child of a defined parent element then you have to use the nth-child selector. Where n is denoted to a number. Example 1 – nth Child Element Example In the above examples, p tags and div tag are used. […]
CSS nth Last Child of the type Selector with Syntax Example Code
May 10th, 2019 Nilesh Chaurasia
CSS nth Last Child of a type Selector If you want to select an HTML Element which is the nth child of a defined parent element but counting start from the last then you have to use the nth-last-child selector. Where n is denoted to a number. Example 1 – Last Child Selector Example with […]
CSS Attribute Selector Syntax Code Examples and Applications
May 11th, 2019 Nilesh Chaurasia
CSS Attribute Selector Through the CSS Attribute Selector, you can select an HTML Element based on the presence of a particular attribute in a tag. If you want to change the design specification of all HTML elements which has a target attribute. Example 1 – Attribute Selector with a element having target defined In the […]
CSS Media Query For Print Screen All with Breakpoints Example
May 17th, 2019 Nilesh Chaurasia
CSS Media Query Media Query is used to changing the CSS Properties Values according to the width of the screen. CSS Properties like font-size, color, width and other. Example 1 – CSS Media Query Example for responsive design In the above examples, we have a two column design. Both column show as inline when the […]
PHP Variables Define or Declaration with HTML Syntax
May 20th, 2019 Nilesh Chaurasia
PHP Variables Variable is used to store a piece of information or data to use this information or data throughout the PHP page. In PHP variable name starts with $ symbol. Example 1 – Variables use and code with echo In the above examples, we declare two variables($x, $y) and also print these variables. Fig.1 […]
PHP Variables Data Type with Example of Int, Float, String and Boolean
May 20th, 2019 Nilesh Chaurasia
PHP Variable Data Types PHP Variables data type is used to define which type of variable you stored in your variables. PHP Supports 8 different data types of variables. Followings are the different types of PHP Variable Type. String Integer Float/Double Boolean Array Object NULL Resource PHP String Variable Type String is a set of […]
PHP Constant and Its Example Code Syntax
May 22nd, 2019 Nilesh Chaurasia
PHP Constant PHP Constant is also similar to the PHP VAriables but the value of Constant cannot be changed or Constant has a fixed value. If you want to create a constant then you have to use the “define()” function. Example 1 – Constant Syntax In the above examples, we have shown how you can […]
PHP Operator with Example Code for Arithmetic, Comparison, Assignment, Increment, Decrement And Logical l and Conditional
May 22nd, 2019 Nilesh Chaurasia
PHP Operators To perform the operations like- Arithmetic Operators Comparison Operators Assignment Operators Increment/Decrement Operators Logical Operators on the variables PHP Operators are used. PHP Arithmetic Operators To perform the arithmetic operations like addition, subtraction, divide, multiplication etc “Arithmetic Operators” are used. Operators Symbol Syntax Description Addition + $x + $y To calculate the sum […]
PHP String functions for Length, Compare, Replace, Find, Uppercase, Lowercase, Search, Reverse
May 24th, 2019 Nilesh Chaurasia
PHP String Functions PHP String Functions are to manipulate the string. String Length, String Comparison, String Compare, String Replace, String Find, String Uppercase, String Lowercase, String Search are some string functions in PHP. PHP String Length String Length Function or strlen()is used to get the length of a string. Example 1 – PHP String Length […]
PHP if else Conditional Statement Syntax and Shorthand Code Example
May 25th, 2019 Nilesh Chaurasia
PHP Conditional Statements PHP Conditional Statements are used to perform selected statements based on a certain condition. For example, suppose you want to execute some part of code when the variable $x value is 10. if statement – to execute some part of code when only one condition is true. if…else statement – to execute […]
PHP Switch Case Conditional Statement Syntax and Code Example
May 25th, 2019 Nilesh Chaurasia
PHP Switch Case Statement PHP Switch Case is also a conditional statement. You also say that it is the alternative solution and easy syntax of multiple if statement. It is used for multiple test condition. Switch Case Syntax Example 1 – Switch Case Statement Example In the above code, we describe how you can use […]
PHP For Loop Statement with Break, Continue Syntax Example Code
May 27th, 2019 Nilesh Chaurasia
PHP for Loop Loops are used to execute a part of code multiple times. Loop is also called iterative statements. PHP supports 4 type of loops such are “for loop”, “while loop”, “do-while loop”,& “foreach loop”. for Loops are used to execute a part of code multiple times. In for Loop initialization, condition and increment/decrement […]
PHP while Loop and do while Statement Break Continue Code Example
May 28th, 2019 Nilesh Chaurasia
PHP while Loop Statement PHP while Loop is used to execute the part of code multiple times. This Loop is also working similarly to the for loop but has a little bit change in the syntax. All the three statements are broke down into 3 part. Firstly we initialize the variable than give the condition […]
Conditional Ternary Operator in PHP with Code Syntax Examples
May 29th, 2019 Nilesh Chaurasia
PHP Ternary Conditional Operator Ternary Operator is a conditional assignment in which you can assign the condition as well as either two different values that can be assigned to the target variable based on the condition. Ternary Operator performs conditional operators. Ternary operators simplify some PHP conditional statement. But not simplify all the PHP conditional […]
Basic Built in Functions in PHP with Code Example
May 29th, 2019 Nilesh Chaurasia
Basic Built in Functions in PHP PHP have many built-in functions that you can use this function and perform some basic task, for example, date(), time(), array() and many more. More than 1000s built-in functions are defined in the PHP. Some PHP Pre-defined Build in Functions date() time() strlen() str_replace() phpinfo() php_uname() extension_loaded() Phpversion() ini_set() […]