BLOB in Mysql



The term "blob" actually stands for "Binary Large Object" and is used for storing information indatabases.

A blob is a data type that can store binary data. This is different than most other data types used in databases, such as integers, floating point numbers,characters, and strings, which store letters and numbers. Since blobs can store binary data, they can be used to store images or other multimedia files. For example, a photo album could be stored in a database using a blob data type for the images, and a string data type for the captions.

Because blobs are used to store objects such as images, audio files, and video clips, they often require significantly more space than other data types. The amount of data a blob can store varies depending on the database type, but some databases allow blob sizes of several gigabytes. Now that is a big blob!

How to create links to sections on the same page in HTML.


To create links to a link within the page, two HTML tags need to be used.

<A HREF="#top">Top</a>

This first tag is almost the same as any other HTML tag you would use to create a link to another page. However, to create a bookmark, you must start the link with a # (pound symbol,) which represents a name statement, used in the next tag. When the user clicks on Top, the computer would then go to the name tag, if found on the same page of the link

<A NAME="top">

This next tag is where the first tag will go when the link is clicked. These are commonly referred to as bookmarks.

ID Vs Class


ID VS Class used in CSS
why did they choose those names??
ID = A person's Identification (ID) is unique to one person.
Class = There are many people in a class.

Use IDs when there is only one occurence per page. Use classes when there are one or more occurences per page.

Creating Horizontal Menus Tutorial


Creating Horizontal Menus

Horizontal Menus are an excellent way to create a menu of categories or Pages, highlighting specific areas of interest within your website. Many web designers place a horizontal menu under the header, where they draw the eye.
Horizontal menus are created with the HTML List feature. Yes, while they are horizontal instead of vertical, like typical lists, they are still a list. CSS presentation styles allow us to set the list to run on one line instead of a separate line for each list item.
Since horizontal menus are simply lists in a horizontal line, let's start the process with a list.

Creating a Horizontal Menu

Below is the simple list for our horizontal menu. We recommend you keep your list small as too many will stretch wide across the screen and may cause some layout problems. We've enclosed the list in a division called navmenu.
<div id="navmenu">
<ul>
 <li><a href="home.hmtl">HOME</a></li>
 <li><a href="proudct">PRODUCTS</a></li>
 <li><a href="contact">CONTACT US</a></li>
 <li><a href="http://www.webxervice.com">WEBXERVICES</a></li>
</ul>
</div>
As you can see, within our list we've included a PHP tag for the "home page" and several categories, as well as a link to WordPress, those helpful folks. The list would look like this, in its simplest form (as styled by the Codex):
  • HOME
  • PRODUCT
  • CONTACT US
  • WEBXERVICE
Applying the CSS
By default, a list runs vertically, each item on its own line. It also includes an image, known as a bullet, before each line. In your stylesheet, we need to add a reference to the navmenu and the first step is to remove the bullet and set our margins and padding to zero for the whole list.
#navmenu ul {margin: 0; padding: 0; 
 list-style-type: none; list-style-image: none; }
If you save and upload your stylesheet, then refresh the test page in your web page browser, you would see that your list now has no bullets and no indents, if everything is working right.
Now, we need to add the technique that will set this list into a horizontal line. We need to add a style reference to the list item itself.
#navmenu ul {margin: 0; padding: 0; 
 list-style-type: none; list-style-image: none; }
#navmenu li {display: inline; }
Because these are links, we have to take a moment to clean up the look of the links. There are many things you can do to style this list, but for now, let's add some space to the list of links so they aren't crowded together and remove the default link underline and have the link change colors when the mouse moves over it.
#navmenu ul {margin: 0; padding: 0; 
 list-style-type: none; list-style-image: none; }
#navmenu li {display: inline; padding: 5px 20px 5px 20px}
#navmenu a {text-decoration:none; color: blue; }
#navmenu a:hover {color: purple; }
Okay, we can't resist. Let's take this another step further and give our new horizontal menu list some real jazz. See if you can tell what is being done to change the look.
#navmenu ul {margin: 0; padding: 0; 
 list-style-type: none; list-style-image: none; }
#navmenu li {display: inline; }
#navmenu ul li a {text-decoration:none;  margin: 4px;
 padding: 5px 20px 5px 20px; color: blue;
 background: pink;}
#navmenu ul li a:hover {color: purple;
 background: yellow; }
If we did this all correctly, your list should look like this:
  • HOME
  •  
  • PRODUCTS
  •  
  • CONTACT
  •  
  • WEBXERVICES

10 Reasons Your Business Needs A Website!

  • Your Business is Open to the World 24/7, 365 Days a Year
  • It's Your Online Brochure / Catalog That Can Be Changed at Anytime
  • Reach New Markets with a Global Audience
  • Improved Customer Service
  • Present a Professional Image
  • Sell Your Products
  • Promote Your Services
  • Gather Information and Generate Valuable Leads
  • Provides Instant Gratification
  • Great Recruiting Tool

 

Page Layout with using Div (Kompozer )


Make Your first web page

A tutorial for beginners 

Now that you have a nice domain name you can start creating your website. For this you need web building software. I've used Kompozer for this website, Kompozer is for free (get it here).


So where to start? First we need to make a layout for your main page and sub pages. Make sure it looks good and is easy to maintain. Thats not a big deal when you get used to CSS. By the end of this tutorial you will have a basic build of your website, and a lot more understanding of CSS and a bit of HTML. So a good base to further improve on.

- First create a new folder wherever you like (Desktop recommended for easy access), name it after your site. In that folder create two new folders called CSS and Images. In the CSS folder create a new file called 'css.css' 

- Open Kompozer and create a new page select "strict DTD".
Go to file: save as, enter a title (a description of your site). Save it as 'index.html' in the newly created folder (very important or else your webhost will not recognize it as the main page) this folder is called the "root folder". The first page a person sees when visiting your website is always called index.html.


This is what your Layout should look like:layout-website
Everything that's visible is placed in the <body>. Note that some elements are placed within other elements, your elements should be placed in the #wrapper or else the elements would just stack on top of each other (like a bad tetris player). 

- Now click on the CSS CaScadeS, then click on the top left button, scroll down to linked style sheet. Now type in the url of the folder where your CSS file is located > Choose File > Create Style sheet.

- Create a new style rule:
Top left scroll down to Style Rule type in the box:  *

Note: The * (Astrix) is a universal code that will affect everything on your page. 
Click create style rule

CSS Tutorial Beginner
Note: In this area (general) you can type the CSS commands or specify them in the tabs. The latter is advised for beginners.

Go to the "box" tab. Leave everything as it is, except the margin and padding. Set for these two attributes all values to "0px" (zero pixels)... This makes sure everything connects properly on your page.

Create another CSS rule an ID attribute name it #wrapper
Go to the "box" tab again.

Change these properties:
Margin: left = auto
Margin: right = auto
Width: 800px

Note: The wrapper style rule will ensure that everything that you put in it stays centered and will not exceed 800 pixels.

Create these style rules: #top, #menu, .left, .right, #bottom.

The "box tab" values for these styles:

#top
Height: 100px
Width: 800px
go to the "background tab" and choose a color: blue

#menu
Height: 20px
Width: 800px
background color: silver

.left
float: left
height: 600px (for now)
width: 600px
background color: green

.right
float: right
height: 600px (for now)
width:200px
background color: yellow

#bottom
float: left height: 20px
width: 800px
background color: pink

Basic layout tutorial
Note: "#" stands for ID, "." for Class. ID is a unique style rule and Class is for multiple objects on the same page. So using Class for the "left" and "right" styles means, that you can appoint them to more than one objects.

Now the basic HTML part.

Go to your source tab (bottom left in your screen)

Your HTML code should look like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html> 
<head> 
<title>Your Page Title</title>
</head> 
<body>

This is the visible area of the coding
The body defines your layout and content
This is where you place "div's". a Div is a box that contains your text, you can sign specific rules and attributes to them using CSS rules.
Notice that every tag has a opening tag and a closing tag, there are a few tag's that don't have one like: <br> (breaks a line in your text -similar to enter-).

</body> 
</html>

Now create a div in the body with the wrapper ID.

<body>

<div id="wrapper">

</div>

</body>

Note: This Div will contain everything to the 800pix limit you set. You should place every div you make inside the wrapper. 

Now put a new div inside the wrapper. The id will be  "top"

So it will look like this.... 

<div id="wrapper">
<div id="top">
//your logo will go here//
</div>
</div>

Your logo usually goes into the "top" div. 
Simply type the name of your company in the box for now.

Now your menu... create the "menu id div" behind the closing tag of your "top" div.
Type in the div something like (between the <div id="menu"> and </div>): Home | Links | Tools | About
And select a background color.

Next step will explain how to make the page in a two column page with the div's side by side. You will use the "left"and "right" classes.

Create:
Behind the wrapper, top and menu and before the </div>(closing tag) of your wrapper div create:
<div class="left"></div>
<div class="right"></div>


By now you should have something like this:
Example first site

- The bottom div will be your last one then.... create it and you can put something like copyright stuff in it.


Thats it people. Hope this was a good exercise, these are the basics of HTML and the use of CSS. When time goes by this will sound so easy to you. Just keep on clicking and you will learn as you go. 

Rounded Corner Effects

Rounded corner effects to the blocks in HTML structure enhance the beauty of blogs and we have achieved this effect by using corner images in the past, but the CSS3 border-radius property allows web developers to easily utilize rounder corners in their design elements, without the need for corner images or the use of multiple div tags, and is perhaps one of the most talked about aspects of CSS3.

Let’s start with a very basic example,


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Rounded Corners Without Images</title>
<style>
.w_corners {
    width: 500px;
    margin: 0px auto;
    background-color: #000;
    color: #fff;
    padding: 10px;
    /* Border Radius Style */
    border-radius: 15px;
    /* Mozilla Firefox Extension */
    -moz-border-radius: 15px;
}
</style>
</head>
<body>
<!-- Begin Rounded Corners Block -->
<div class="w_corners">CSS Rounded Corners Without Images</div>
<!-- End Rounded Corners Block -->
</body>
</html>

The round corner will shown given below




If you need more help then visit http://www.css3maker.com/border-radius.html. Here you will get the code of rounded corner shap with the help of tool. css3maker.com is the best site i have ever discovered for generated code of round shape.





Powered by Blogger.