Clearing floats

For a float based layout the common problem is that the container doesn’t stretch up. Try Clearing floats. For example if you want to add floats then using command the browsers it stretch up the container all the way. Suppose we are using the below css through out the page: div.container { border: 2px solid […]

Syntax of JSON

Basically Syntax of JSON is the subset of the JavaScript syntax. It has following notation: Data is represented in name/value pairs. The name/value pairs are separated by , (comma). Curly braces hold objects. Square brackets hold arrays. Below is a example of Syntax of JSON: {“students”:[ {“Name”:”Tim”, “Age”:”25″}, {“Name”:”John”, “Age”:”30″}, {“Name”:”Jane”, “Age”:”45″} ]} So, students[0].Name […]

Meta Tags in HTML

This is meta information about your html document. It is not visible to the browser. For SEO purpose meta tags are used and written between head tags. Meta Tags: <head> <meta name=”keywords” content=”Html, Web design, Meta tags”> <meta name=”description” content=”This is html meta tags description”> </head> Besides this lots of meta name are available.

Images in HTML

In html document, images are added via img element where the src attribute contains the url to the image path. Images example: <img src=”image.jpg”> There are different types of image format like jpg, png, gif, bmp etc. There is a attribute called “alt” which is used to give alternate information about the image or in […]

HTML Entities

In many different language HTML language is used. So it contains different types of symbols or entities which are not english alphabet. These entities starts with ampersand character and finish with semicolor character. For e.g. &quot; Here is a list of entities examples: &quot; “ &apos; ‘ &amp; & &lt; < &gt; > &pound; £ […]

The URLs

URLs or Uniform Resource Locator is location of html document web. It consists of three parts i.e. Protocol, Domain and Resource path. For e.g. http://www.namasteui.com/index.php where http is protocol, www.namasteui.com is domain and index.php is resource path. It also has a query string i.e. http://www.namasteui.com/index.php?value=1&page=3 So the query string for the above url is: ?value=1&page=3 […]