HTML CSS JavaScript jQuery AJAX ASP PHP SQL tutorials, examples for web building ,author kapil kumar

Sunday, 27 October 2019

Website design company in Moradabad, Top web design company, Reliable webdesign company

Web Design Moradabad –
Being an experienced website designing company in moradabad we always thrive in providing best web designing services to our customers. We have always been appreciated by clients for our outstanding services and Support.
WebAppsPlanet render professional and affordable custom web design in Moradabad to let your business excel in sales number. Our Web Designers are expert in providing best class web design and development in moradabad.

Designer’s portfolio
A good Webbsite designing Company Moradabad India or the designing company always possess an outline presence. The designer’s portfolio reveals the needful links so that the current website designing delivers the idea of a perfect smart web design. We should take time to navigate through the web page of the web designing company so that there is no doubt regarding it. The skill of the client reflects in the site to get a feeling of surety that all the features as well as the navigational properties are performing properly. There should not be an often unskilled web designer’s sites where we can find dead links, various categories of mistakes that are mostly misspelled and even carry other errors.

Client Satisfaction: Our motto
Our services always win the prize of Client Satisfaction. We always do our best efforts to make any business project excel and stand tall in this competitive market. We always try to make our services more productive and effective for clients. Our Team always cater best solutions and support to our customers.

Significance of web services
In today’s era, where you have to think “Out of the Box” to cop up with the cut-throat competition. Web Design Moradabad India are required for any company or any department now a days. Every business uses web services in its working departments. Web Design Moradabad, India services are indispensable in Marketing field, Accounting, Invoicing, CRM Software Solution and many more departments.

When Business grows rapidly, we can not rely on slow and bulky software for transferring and sharing the information among a great number of employees. Today’s professionals want every software with fast and quick functionality and easy to use interface. When everyone is using cloud storage, Web Services not only allow us to store our data on cloud but also we can work LIVE on cloud.

Web services are essential to grow any Business and Industry.
Why WebAppsPlanet makes a difference?

✓ Latest and attractive designs
✓ Creative approach
✓ Quality solutions
✓ Open communication
✓Best Maintenance and support

Web Design Moradabad, India + Domain + Hosting + Email + Query Form + Mobile Responsive Good Services · Affordable Price · Many Happy Clients
Best Web Design Moradabad India
HTML, PHP, ASP Website Designing Company
Dynamic Web Design Moradabad India
WordPress Webs Design Service Moradabad
Responsive Web Design Moradabad India
eCommerce Web Design Moradabad India
Seo Friendly Web Design Moradabad India
Products Web Design Moradabad India
Mobile Web Design Moradabad India  
Smartphone Compatible Website Designer  
Online Shopping Website Designing  
Best Website Designing Company Moradabad  
India Best Website Designing Company  
CMS Website Designing Company India  
Custom Wen Design Services Moradabad  
Want to Expand your Business?
Get a Website & Reach more customers.
Talk To Us : +91 7017 303737
Affordable Websites · Website Designing · E commerce Websites · 
Web Design & Development in Moradabad with Unbeatable Cost By Experienced Developer.

Monday, 25 February 2019

Website Designing Company in Dehradun, Website Development in Dehradun

WebAppsPlanet is a dominant Web Designing Company In Dehradun, Uttarakhand, India. We provide Best SEO Services, Wordpress & Drupal Web Site, PHP Development, UI Development Services in India, Offering affordable and high trait services worldwide.
We provide below services:
Web Designing - WebAppsPlanet provides Static And Dynamic Website Designing Company in Dehradun, Uttarakhand Want to develop a professionally looking and visually appealing website? Then, this is the right place for you to be. We are the pioneers of getting your website developed in the best way possible, as per your choices. We, at WebAppsPlanet, always focus on one specific goal- to get the website developed in the most efficient manner possible while keeping a balance between under-friendly functionality, informative content structure, and visual appealing nature. We offer the most comprehensive website designing solution packages that are true value for money and assure a 100% effective web presence.

Web Development - We are Rishikesh based PHP Development company offering CMS, Wordpress, Drupal web site development Company in Rishikesh, Uttarakhand Hire our developers today !
Web Development demands an impeccable sense of technology to make a website that result in more business. And WebAppsPlanet is proud to claim that we excel in both: technology and aesthetics. Our expert team of web developers and web designers are capable of offering groundbreaking and dependable web solutions to set off your most complicated business concepts
Search Engine Optimization Services - Search Engine Optimization Company in Dehradun, often referred to as SEO, is a strategic process used to improve a web-site or Web page's visibility in search engines organic placement, especially on Google.com

Search engine optimization Company in Dehradun (SEO) is neither a very new nor an old one concept running in the web industry, although majority of website owners succeed in implementing this extensively instrumental technique to update the website or leverage the online business.

WebAppsPlanet, SEO division of our Internet marketing firm has successfully increased business among our clients for almost a decade now. We are a India search engine optimization company that promises an increase in business based on our professional search engine optimization strategies, contemporary advertising methods and cutting edge marketing expertise.

E-commerce Web Development - We're a Rishikesh based E-Commerce Website Design company in Dehradun, providing creative ecommerce websites for businesses looking to expand and sell their products online. We focus on achieving great results and help our clients meet their goals and grow their online e-commerce brands

WebAppsPlanet offer everything you need to set up your business website and start selling online. It's quick and easy to choose a theme, add your products, and begin accepting orders. You could make your first sale the same day you sign up! With complete control over your website's navigation, content pages and design, Your website comes with a fully-featured Content Management System in addition to an online store. Hosting your entire business website is easy and hassle-free.

WebAppsPlanet's Design is one of the world's leading companies that provide effective Ecommerce solutions. Our secured Ecommerce solutions combine professional Ecommerce web design with affordable Ecommerce services. We cater to both the aesthetic & functional requirements of your website.

Responsive Web Design Company in Dehradun
Mobile Apps Development Company in Dehradun
iPhone app development Company in Dehradun
Android app development Company in Dehradun

Website Designing in Rishikesh, Website Development in Rishikesh

WebAppsPlanet is a dominant Web Designing and Development Company In Rishikesh, Dehradun, Uttarakhand, India. We provide Best SEO Services, Wordpress & Drupal Web Site, PHP Development, UI Development Services in India, Offering affordable and high trait services worldwide.
We provide below services:
Web Designing - WebAppsPlanet provides Static And Dynamic Website Designing Company in Rishikesh, Uttarakhand Want to develop a professionally looking and visually appealing website? Then, this is the right place for you to be. We are the pioneers of getting your website developed in the best way possible, as per your choices. We, at WebAppsPlanet, always focus on one specific goal- to get the website developed in the most efficient manner possible while keeping a balance between under-friendly functionality, informative content structure, and visual appealing nature. We offer the most comprehensive website designing solution packages that are true value for money and assure a 100% effective web presence.

Web Development - We are Rishikesh based PHP Development company offering CMS, Wordpress, Drupal web site development Company in Rishikesh, Uttarakhand Hire our developers today !
Web Development demands an impeccable sense of technology to make a website that result in more business. And WebAppsPlanet is proud to claim that we excel in both: technology and aesthetics. Our expert team of web developers and web designers are capable of offering groundbreaking and dependable web solutions to set off your most complicated business concepts
Search Engine Optimization Services - Search Engine Optimization, often referred to as SEO, is a strategic process used to improve a web-site or Web page's visibility in search engines organic placement, especially on Google.com

Search engine optimization (SEO) is neither a very new nor an old one concept running in the web industry, although majority of website owners succeed in implementing this extensively instrumental technique to update the website or leverage the online business.

WebAppsPlanet, SEO division of our Internet marketing firm has successfully increased business among our clients for almost a decade now. We are a India search engine optimization company that promises an increase in business based on our professional search engine optimization strategies, contemporary advertising methods and cutting edge marketing expertise.

E-commerce Web Development - We're a Rishikesh based E-Commerce Website Design company, providing creative ecommerce websites for businesses looking to expand and sell their products online. We focus on achieving great results and help our clients meet their goals and grow their online e-commerce brands

WebAppsPlanet offer everything you need to set up your business website and start selling online. It's quick and easy to choose a theme, add your products, and begin accepting orders. You could make your first sale the same day you sign up! With complete control over your website's navigation, content pages and design, Your website comes with a fully-featured Content Management System in addition to an online store. Hosting your entire business website is easy and hassle-free.

WebAppsPlanet's Design is one of the world's leading companies that provide effective Ecommerce solutions. Our secured Ecommerce solutions combine professional Ecommerce web design with affordable Ecommerce services. We cater to both the aesthetic & functional requirements of your website.

Responsive Web Design
Mobile Apps Development Company
iPhone app development Company
Android app development Company
Trusted SEO Company in Rishikesh
Best SEO Company In Rishikesh
Website Designing Company In Rishikesh
Software Development Company in Rishikesh

Sunday, 30 November 2014

Age calculation in php

Age calculation in php



Declare a function =>

  1. function getAge( $dob, $date )
  2. {
  3.     $dob=strtotime($dob);
  4.     $date=strtotime($date);
  5.         $age = 0;
  6.         while( $date > $dob = strtotime('+1 year', $dob))
  7.         {
  8.                 ++$age;
  9.         }
  10.         return $age." years";
  11. }

Monday, 21 July 2014

How to run WAMP Server on Windows 8

How to run WAMP Server on Windows 8


As you might know that the post I made previously was just a way to get around this strange problem. After a long time, I've finally managed to find out the actual reason for this problem, which I want to share with all of you.


The thing is that Windows 8 is an IPV6-first Operating System and WAMP is, by default, configured to run with IPV4 only. This creates a conflict and hence we face this problem. To confirm that Windows 8 uses IPV6. Open the command prompt and type ping localhost and press the Enter key. You'll receive a reply from ::1 which is the loopback address for IPV6. 

So in order to properly tackle this problem, there's no need to follow the steps I mentioned in    my earlier post. Although my older post might have solved your problem, it isn't a proper solution. Here's what you should actually be doing.

Step # 1 - Changes in httpd.conf file

Monday, 2 June 2014

Android 4.4.2 KitKat For Samsung Galaxy S Advance I9070: How To Install It Using Carbon Custom ROM [Tutorial]

Android 4.4.2 KitKat For Samsung Galaxy S Advance I9070: How To Install It Using Carbon Custom ROM [Tutorial]


Users of Samsung Electronics Co.’s (KRX:005935) Galaxy S Advance I9070 can now update their handsets to the latest Android 4.4.2 KitKat by flashing a new build of the Carbon custom ROM, which is developed based on the new Android version.

Being an unofficial firmware, the Carbon ROM requires a custom recovery such as ClockworkMod in order to install the software and Google Apps zip files on the phone.
Check out the tutorial below to flash the custom ROM on the Galaxy S Advance I9070 using Odin.
Note: We are not responsible if anything goes wrong. Users should proceed at their own risk.
Points To Remember
- This tutorial is only for Samsung Galaxy S Advance I9070 handsets.
- The device must be rooted and have ClockWorkMod Recovery installed.
- Back-up all the data in your phone properly.
- The device must have at least 80 percent battery power.
- The USB driver must be installed for the device in your PC.
- Enable USB Debugging via Setting > Developer options > USB Debugging.
- If the device gets stuck on booting or experiences a boot loop issue, perform wipe cache partition and wipe dalvik cache a few more times before rebooting.
Tutorial
Step 1: Download Carbon custom ROM for the Galaxy S Advance.
Step 2: Download Google Apps package.
Step 3: Connect the device to the computer via USB and copy the ROM and Google Apps zip files to the root folder of your handset’s SD card. But do not extract them.
Step 4: Disconnect USB and turn off the phone.
Step 5: Now, get into the Recovery Mode by pressing and holding Volume Up, Home and Power buttons together.
Step 6: Once you are in the Recovery Mode, select “wipe data/factory reset.” Use the Power button to select options. After that, perform a cache wipe by selecting “wipe cache partition.”
Step 7: From CWM recovery, go to “Advanced” menu and then select “wipe dalvik cache.”
Step 8: Go back to the main recovery screen and select “install zip from sdcard” and then select “choose zip from sdcard.”
Step 9: Use the Volume keys to go to the Android 4.4.2 ROM zip file copied to the SD card and select it using the Power button.
Step 10: Repeat the previous step to install Google Apps.
Step 11: Once the installation process is complete, press the “+++Go back+++” button to go back to the main recovery menu and select “reboot system now.” The phone will take about five minutes to restart.

Post published by - Kapil Kumar

Tuesday, 20 May 2014

The final tips


Congratulations, you have now reached the final lesson.

So now You know everything?

You have learned a lot and you are now capable of making your own websites! However, what you have learned are the basics and there is still a lot more to be mastered. But you now have a good foundation from which to build on.
In this last lesson, you will get some final tips:
  • First, it is a good idea to maintain order and structure in your HTML documents. By posting well arranged documents you will not only show others your mastery of HTML but will also make it considerably easier for yourself to keep an overview.
  • Stick to the standards and validate your pages. This cannot be stressed enough: Always write clean XHTML, use a DTD and validate your pages on validator.w3c.org.
  • Give your page contents. Remember that HTML is a tool, which enables you to present information on the Internet, so make sure that there is information to present. Pretty pages may look nice but most people use the Internet to find information.
  • Avoid overloading your pages with heavy images and other fancy stuff you have found on the Internet. It slows down the loading of the page and could be confusing for visitors. Pages that take more than 20 seconds to load can lose up to 50% of their visitors.
  • Remember to add your website to search engines/directories so people other than your closest family can find and enjoy it. On the front page of all search engines, you will find a link to add new pages (The most important is Google, but there are also others like DMOZ, Yahoo, AltaVista,AlltheWeb and Lycos).
  • In this tutorial, you have learned to use Notepad, which is a simple and very easy to use editor, but perhaps you will find it helpful to use a more advanced editor which gives a better overview and more possibilities. 

Website standard and validations


In this lesson, you will get a little more theoretical knowledge on HTML.

What more is there to know about HTML?

HTML can be coded in many different ways. And browsers can read HTML in just as many ways. You could say that HTML has many dialects. That is why some websites look different in different browsers.
There have been attempts to make a common standard of HTML through the World Wide Web Consortium (W3C) founded by Tim Berners-Lee (yep! the great guy who invented HTML). But it has been a long and tough road.
In the old days - when browsers where something you had to pay for - Netscape was the dominate browser. Back then, the most supported HTML standard where called 2.0 and later 3.2. But with a market share of over 90% Netscape did not have to - and did not - care much about common standards. On the contrary, Netscape invented their own strange elements, which did not function in other browsers.
For many years Microsoft almost completely ignored the Internet. After a while they took up the competition with Netscape and introduced a browser. The first versions of Microsoft's browser, Internet Explorer, were not any better than Netscape at supporting the HTML standards. But Microsoft chose to give away their browser for free (always a popular thing to do) and Internet Explorer soon became the most popular browser.
From version 4 and 5 Microsoft aimed to support more and more of the HTML standards from W3C. Netscape did not manage to develop a new version of their browser and continued to distribute the outdated version 4.
The rest is history. Today the HTML standards are called 4.01 and XHTML. Now it is Internet Explorer that has a market share of over 90%. Internet Explorer still has its own strange elements but it also supports the W3C HTML standards. And so do all of the other browsers, such as Mozilla, Opera and Netscape.
So, when you code HTML following the W3C standards, you make websites that can be seen in all browsers - both now and in the future. And luckily, what you have learned in this tutorial is a new and stricter and cleaner version of HTML called XHTML.

How do I tell which version is used?

With all the different types of HTML you need to tell the browser which "dialect" your HTML is in, in your case XHTML. To do that, you use a Document Type Declaration. The Document Type Declaration is always written in the top of the document:
Example 1:
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">

 <head>
 <title>Title</title>
 </head>

 <body>
 <p>text text</p>
 </body>

 </html>
 
 
Besides the Document Type Declaration (the first line in the example above), which tells the browser that you want to write XHTML, you also need to insert some extra information in the html tag with the two attributes xmlns and lang.
xmlns is short for "XML-Name-Space" and should always have the value http://www.w3.org/1999/xhtml. That is all you need to know. But if you have a big hunger for complicated knowledge you can read more about namespaces on W3C's website.
In the lang attribute you state which language the document is written in. For this the ISO 639 standard is used, which lists codes for all the languages in the world. In the example above the language are set to English ("en").
With a DTD the browser knows exactly how it should read and show your HTML. Hence, use the example above as template for all your future HTML documents.
The DTD is also important when you want to validate your pages.

Validate? Why and how should I do that?

Insert a DTD in your pages and you can always check your HTML for errors by using W3C's free validator.
To test this out, make a page and upload it to the Internet. Now, go to validator.w3.org and type the address (the URL) of your page and validate it. If your HTML is correct you will get a congratulations message. Otherwise you will get an error report telling you exactly what and where you have done something wrong. Make some errors on purpose to see what happens.
The validator is not just helpful to locate an error. Some browsers try to compensate for lack of skills among web developers by trying to fix errors in the HTML and showing the page as they guess it should look. With such browsers, you might never see an error in your own browser. However, other browsers might guess differently or not show the page at all. The validator can help you find errors you did not even know existed.
Always validate your pages to be sure they will always be shown correctly.


Uploading pages

Until now, only you have had the satisfaction of viewing your pages. Now it is time for the rest of the world to see your masterpieces.

Is the world ready for that?

The world is ready - you soon will be too. To get your website on the internet, you just need some server space and a free FTP program.
If you have Internet access, you might already have some free server space for your website. Your server space will then probably be called something like http://example.com/~usernumber. But you might need to activate it first. Read more about this in the papers from your Internet provider or on their support pages.
Another option is to get some free server space on the Internet. In the same way that you set up an e-mail account (at for example Hotmail), you can register for free server space on the Internet. Several companies offer such a service - among them 000webhost.com (click "Order Now" under "Free Hosting") - it will only take a couple of minutes to register.
To have access to the server, you need to know the "Host Name" (For example, ftp.example.com) and have your username and password ready.

Is that all I need?

To access the server and upload your pages, you also need an FTP program. FTP is short for File Transfer Protocol. A FTP program is used to connect two computers over the Internet so that you can transfer files from your computer to another computer (the server). You might not have such a program yet, but fortunately, this can be downloaded for free.
There are many different FTP programs. One of the better is FileZilla, which is entirely free. So now you can download FileZilla atfilezilla.sourceforge.net.

And how do I upload the pages?

Described below is how you upload your pages to a free account at 000webhost.com with FileZilla. But the procedure is, more or less, the same for all providers and FTP programs.
Open the FTP program while connected to the Internet. Insert "Host Name" ("ftp.example.com" under "Address"), username (under "User") and password (under "Password") and click "Connect". You should now have access to the server. In one side of the program you can see the contents of your computer ("Local Site"), and in the other side, you can see the content of the server ("Remote Site"):


Find your HTML documents and images on your computer (on the "Local site") and transfer them to the server (the "Remote site") by double clicking on them. Now the whole world can see them! (For example, at the address http://example.com/page1.htm).
Name one of the pages "index.htm" (or "index.html") and it will automatically become the start page. i.e. if you type http://example.com (without any filename) you will actually open http://example.com/index.htm.
In the long run, it might be a good idea to purchase your own domain 

Layout (CSS)

To give your website layout use Cascading Style Sheets (CSS). In this lesson you will get a short introduction to CSS.

CSS is the better half of HTML. And in coding, there is no equality of status: HTML takes care of the rough stuff (the structure), while CSS gives it a nice touch (layout).

CSS can be added with the style attribute. For example, you can set the font type and size on a paragraph:

Example 1:
 
 <p style="font-size:20px;">This is typed in size 20px</p>
 <p style="font-family:courier;">This is typed in Courier</p>
 <p style="font-size:20px; font-family:courier;">This is typed in Courier size 20px</p>
 
 
Will look like this in the browser:
This is in size 20px
This is typed in Courier
This is typed in Courier size 20px
In the example above we use the style attribute to specify the type of font to be used (with the command font-family) and the font size (with the command font-size). Notice how in the last paragraph we set both the font type and size with a separating semicolon.

It seems like a lot of work?

One of the smart features of CSS is the possibility to manage your layout centrally. Instead of using the style attribute in each tag, you can tell the browser once how it must layout all the text on the page:
Example 2:
 
 <html>

   <head>
   <title>My first CSS page</title> 

   <style type="text/css">
    h1 {font-size: 30px; font-family: arial;}
    h2 {font-size: 15px; font-family: courier;}
    p {font-size: 8px; font-family: "times new roman";}
   </style>

   </head>

   <body>
   <h1>My first CSS page</h1>
   <h2>Welcome to my first CSS page</h2>
   <p>Here you can see how CSS works </p>
   </body>

 </html>
 
 
In the example above CSS has been inserted in the head section and therefore applies to the entire page. To do this, just use the tag <style type="text/css"> which tells the browser that you are typing CSS.
In the example all headings on the page will be in Arial in size 30px. All subheads will in Courier size 15. And all text in normal paragraphs will be in Times New Roman size 8.
Another option is to type the CSS in a separate document. With a separate CSS document you can manage the layout of many pages all at once. Pretty smart if you want to change the font type or size on a large website with hundreds or thousands of pages. We won't go into that now but you can learn it later in our CSS tutorial.

What else can I do with CSS?

CSS can be used for much more than specifying font types and sizes. For example, you can add colours and backgrounds. Here are some examples for you to experiment with:
 
 <p style="color:red;">Redtext</p>

 <h1 style="background-color: blue;">Heading on blue background</h1>
 
 
Try inserting the examples in some of your pages - both as shown above and also as CSS inserted in the head section.

Is CSS nothing but colours and font types?

Besides adding layout such as colors, font types etc., CSS can also be used to control the page setup and presentation (margins, float, alignment, width, height etc.). By regulating the different elements with CSS you are able to layout your pages elegantly and precisely.
Example 3:
 
 <p style="padding:25px;border:1px solid red;">I love CSS</p>
 
 
Will look like this in the browser:
I love CSS
With the property float an element can either be floated to the right or to the left.

For now, concentrate on HTML, and move on to the next lesson where you will learn how to get your website out on the Internet so the whole world can see it!


Html Tables

Tables are used when you need to show "tabular data" i.e. information that is logically presented in rows and columns.

Is it difficult?

Building tables in HTML may at first seem complicated but if you keep cool and watch your step, it is actually strictly logical - just like everything else in HTML.
Example 1:
 
 <table>
   <tr>
  <td>Cell 1</td>
  <td>Cell 2</td>
   </tr>
   <tr>
  <td>Cell 3</td>
  <td>Cell 4</td>
   </tr>
 </table>
 
 
Will look like this in the browser:
Cell 1Cell 2
Cell 3Cell 4

What's the difference between <tr> and <td>?

As you will see from the above example, this is probably the most complicated HTML example we have given you so far. Let's break it down and explain the different tags:
3 different elements are used to insert tables:
  • The opening tag <table> and the closing tag </table> starts and ends the table. Logical.
  • <tr> stands for "table row" and starts and ends horizontal rows. Still logical.
  • <td> is short for "table data". This tag starts and ends each cell in the rows of your table. All simple and logical.
Here is what happens in Example 1: the table starts with a <table>, followed by a <tr>, which indicates the beginning of a new row. Two cells are inserted in this row: <td>Cell 1</td> and <td>Cell 2</td>. The row is hereafter closed with a </tr> and a new row <tr> begins immediately after. The new row also contains two cells. The table is closed with </table>.
Just to make it clear: rows are horizontal lines of cells and columns are vertical lines of cells:
Cell 1Cell 2
Cell 3Cell 4
Cell 1 and Cell 2 form a row. Cell 1 and Cell 3 form a column.
In the above example, the table has two rows and two columns. However, a table can have an unlimited number of rows and columns.
Example 2:
 
 <table>
   <tr>
  <td>Cell 1</td>
  <td>Cell 2</td>
  <td>Cell 3</td>
  <td>Cell 4</td>
   </tr>
   <tr>
  <td>Cell 5</td>
  <td>Cell 6</td>
  <td>Cell 7</td>
  <td>Cell 8</td>
   </tr>
   <tr>
  <td>Cell 9</td>
  <td>Cell 10</td>
  <td>Cell 11</td>
  <td>Cell 12</td>
   </tr>
 </table>
 
 
Will look like this in the browser:
Cell 1Cell 2Cell 3Cell 4
Cell 5Cell 6Cell 7Cell 8
Cell 9Cell 10Cell 11Cell 12

Are there any attributes?

Of course there are attributes. For example, the border attribute is used to specify the thickness of the border around your table:
Example 3:
 
 <table border="1">
   <tr>
  <td>Cell 1</td>
  <td>Cell 2</td>
   </tr>
   <tr>
  <td>Cell 3</td>
  <td>Cell 4</td>
   </tr>
 </table>
 
 
Will look like this in the browser:
Cell 1Cell 2
Cell 3Cell 4
The thickness of the border is specified in pixels.

As with images, you can also set the width of a table in pixels - or alternatively in percentage of the screen:
Example 4:
 
 <table border="1" width="30%">
 
 
This example will be displayed in the browser as a table with the width of 30% of the screen. Try it yourself.

More attributes?

There are lots of attributes for tables. Here are two more:
  • align: specifies the horizontal alignment of the content in the entire table, in a row or in a single cell. For example, left, center or right.
  • valign: specifies the vertical alignment of the content in a cell. For example, top, middle or bottom.
Example 5:


 
 <td align="right" valign="top">Cell 1</td>
 
 

What can I insert in my tables?

Theoretically, you can insert anything in tables: text, links and images... BUT tables are meant for presenting tabular data (i.e. data which can be meaningfully presented in columns and rows) so refrain from putting things into tables simply because you want them to be placed next to each other.
In the old days on the Internet - i.e. a few years ago - tables were often used as a layout tool. But if you want to control the presentation of texts and images there is a much cooler way to do it (hint: CSS). But more about that later.
Now, put what you just learned to practice and design a number of tables in different sizes, with different attributes and content. This should keep you busy for hours.

More about Tables

The title "More about tables" may sound a bit boring. But look at the positive side, when you master tables, there is absolutely nothing about HTML that will knock you out.

What is left then?

The two attributes colspan and rowspan are used when you want to create fancy tables.
Colspan is short for "column span". Colspan is used in the <td> tag to specify how many columns the cell should span:
Example 1:
 
 <table border="1">
   <tr>
  <td colspan="3">Cell 1</td>
   </tr>
   <tr>
  <td>Cell 2</td>
  <td>Cell 3</td>
  <td>Cell 4</td>
   </tr>
 </table>
 
 
Will look like this in the browser:
Cell 1
Cell 2Cell 3Cell 4
By setting colspan to "3", the cell in the first row spans three columns. If we instead had set colspan to "2", the cell would only have spanned two columns and it would have been necessary to insert an additional cell in the first row so that the number of columns will fit in the two rows.
Example 2:
 
 <table border="1">
   <tr>
  <td colspan="2">Cell 1</td>
  <td>Cell 2</td>
   </tr>
   <tr>
  <td>Cell 3</td>
  <td>Cell 4</td>
  <td>Cell 5</td>
   </tr>
 </table>
 
 
Will look like this in the browser:
Cell 1Cell 2
Cell 3Cell 4Cell 5

What about rowspan?

As you might already have guessed, rowspan specifies how many rows a cell should span over:
Example 3:
 
 <table border="1">
   <tr>
  <td rowspan="3">Cell 1</td>
  <td>Cell 2</td>
   </tr>
   <tr>
  <td>Cell 3</td>
   </tr>
   <tr>
  <td>Cell 4</td>
   </tr>
 </table>
 
 
Will look like this in the browser:
Cell 1Cell 2
Cell 3
Cell 4
In the example above rowspan is set to "3" in Cell 1. This specifies that the cell must span over 3 rows (its own row plus an additional two). Cell 1 and Cell 2 are thereby in the same row, while Cell 3 and Cell 4 form two independent rows.
Confused? Well, it is not uncomplicated and it is easy to lose track. Therefore, it might be a good idea to draw the table on a piece of paper before you begin with the HTML.
Not confused? Then go ahead and create a couple of tables with both colspan and rowspan on your own.

Attributes

You can add attributes to a number of elements.

What is an attribute?

As you probably remember, elements give structure to a HTML document and tells the browser how you want your website to be presented (for example,<br /> informs the browser to make a line break). In some elements you can add more information. Such additional information is called an attribute.
Example 1:
 
 <h2 style="background-color:#ff0000;">My friendship with HTML</h2>
 
 
Attributes are always written within a start tag and are followed by an equals sign and the attribute details written between inverted commas. The semicolon after the attribute is for separating different style commands. We will get back to that later.

What is the catch?

There are many different attributes. The first one you will learn is style. With the style attribute you can add layout to your website. For instance a background colour:
Example 2:
 
 <html>
   
   <head>
   </head>

   <body style="background-color:#ff0000;">
   </body>

 </html>
 
 
will show a completely red page in the browser - go ahead and see for yourself. We will explain in greater detail how the colour system works in a few moments.
Note that some tags and attributes use US spelling i.e. color instead of colour. It is important that you are careful to use the same spelling as we use in the examples in this tutorial - otherwise, browsers will not be able to understand your codes. Also, don't forget to always close the inverted commas (quotation marks) after an attribute.

How did the page become red?

In the above example, we asked for the background colour with the code "#ff0000". This is the colour code for red using so called hexadecimal numbers (HEX). Each colour has its own hexadecimal number. Here are some examples:
White: #ffffff
Black: #000000 (zeros)
Red: #ff0000
Blue: #0000ff
Green: #00ff00
Yellow: #ffff00
A hexadecimal colour code consists of # and six digits or letters. There are more than 1000 HEX codes and it is not easy to figure out which HEX code is tied to a specific colour.

You can also use the English name for the most common colours (white, black, red, blue, green and yellow).
Example 3:
 
 <body style="background-color: red;">
 
 
Enough about colours. Let's get back to the attributes.

Which elements can use attributes?

Different attributes can be applied to most elements.
You will often use attributes in tags such as the body tag while you will rarely use attributes in, for example, a br tag since a line break normally is a line break without any parameters to adjust.
Just as there are many different elements, so there are many different attributes. Some attributes are tailor made for one particular element while others can be used for many different element. And vice versa: some elements can only contain one kind of attribute while others can contain many.
It may sound a bit confusing but once you get acquainted with the different attributes it is actually very logical and you will soon see how easy they are to use and how many possibilities they provide.
This tutorial will introduce you to the most important attributes.

Exactly what parts does an element consist of?

Generally an elements consist of a start tag with or without one or more attributes, some content and an end tag.