Categories
Html

HTML Lists

In html two different lists of elements are present i.e. unordered list and ordered list. Unordered lists: This lists enclosed with <ul> element and are bullet lists. <ul> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ul> You can also change the type of bullet i.e. <ul type=”square”><li>…</li></ul> <ul type=”circle”><li>…</li></ul> <ul type=”disc”><li>…</li></ul> Ordered lists: These are used […]

Categories
MySQL

MySQL UPDATE Statement

Using MySQL UPDATE statement you can update existing data in a table. it can be a single column or multiple rows. Here is a simple example of MySQL UPDATE: UPDATE users SET user_address = ‘Kolkata, India’, user_state = ‘WB’ WHERE user_id = 247 You can also update fields depends on JOIN query on two or […]

Categories
MySQL

MySQL Storage Engines

When you create a database you have to choose the storage engine for storing data into the database. MySQL supports various types of storage engines i.e. MyISAM, InnoDB, MERGE, MEMORY (HEAP), ARCHIVE, CSV, FEDERATED. Each storage engines has different performance of the database and has advantages or disadvantages. Here is the list of MySQL Storage […]

Categories
MySQL

MySQL INNER JOIN

Using MySQL INNER JOIN you can match rows in one table with another table and get result set that contain columns from both tables. Suppose we have two tables user and order. So Using this join we will get the result row where userid from user table and userid from order table matches. Read Also: […]

Categories
MySQL

Primary Key, Unique Key, Key, Foreign Key

A primary key is a column or multiple columns that uniquely identify each row in a table.Basic key of primary key:– This must contain unique values– For multiple columns, the combination of values must be unique– Primary key is not null– Only one primary key will be present in a table As MySQL works faster […]

Categories
MySQL

MySQL ORDER BY & LIMIT

To sort a table columns in ascending or descending order you use ORDER BY clause. Using ASC and DESC you can get the result in ascending or descending order. You can also apply both order for different columns at the same time. ORDER BY EXAMPLE: SELECT name, address FROM users WHERE state = ‘AL’ ORDER […]

Categories
AngularJS

AngularJS Views

Using ng-view and ng-template directives and $routeProvider services you can provide single page application via multiple views on a single page. ng-view: A place holder where a corresponding view can be placed.ng-template: Used to create an html view using script tag with the help of “id” attribute.$routeProvider: Set the configuration of urls and map them […]

Categories
Html

HTML Document Structure

Here you will see how the basic html document structure looks like. The page includes a doctype declaration with a html, head, title and body element. Doctype tells the browser what version oh html is using in the document.For latest version html5 it is written as <!DOCTYPE html> Read Also: HTML Forms The other elements […]

Categories
Css3

Rounded Corners in CSS

This below content gives you an idea how to make cross-browser compatible rounded corners with CSS. Example of Rounded Corners: <!DOCTYPE html> <html> <head> <style> .roundCorner{ background: #C2C2C2; border-radius: 25px; border: 3px solid #C2C2C2; padding: 15px; width: 150px; height: 150px; } </style> </head> <body> <div class=”roundCorner”>Rounded corner div!</div> </body> </html>

Categories
Html

HTML Forms

By using html forms we get input data from the user. For example registration form, contact us feedback etc. Html forms are enclosed between form element like below:<form></form> There are numerous form fields that can be use in forms: -Text field-Text area-Checkbox-Radio buttons-Select box-File field-Button-Image button-Submit button GET and POST:Form method can be two types […]