Let’s say we want to put in a html page a few photos horizontally. This can be done easily using a table.
Tags <table> </ table> define the contents of a table. Between these tags must be included on these other tags <tr> <td> </ td> </ tr> so that the table will form <table> <tr> <td> </ td> </ tr> </table>.
Continue reading HTML insert images in a line/gallery
For some time I discovered how to make a connection between a PHP document (script) and a MySQL database. To create dynamic sites that write and read a database is needed to introduce Â into a PHP file that creates a connection between the two of them. This is a used predefined PHP function mysql_connect and can be invoked whenever we need a connection to a database. Continue reading PHP-MySQL Connection
The X-11 Color Set
There are two ways to put colors in HTML documents. One is to insert color code and the second is to insert color name. About the color codes I wrote a previous article and this one Â it will handle the color names. In a file .html you can enter a line that defines a color as follows: Continue reading HTML Colors – Names
You’ll find that you often have to work with colors when constructing Web pages, so it’s probably a good idea to take a minute or two now and get the HTML color techniques down pat. Most of the time, you specify a color by entering a six-digit code that takes the following form:Â #RRGGBB
Continue reading HTML Colors – Numbers
We all have been in situation where we allow users to upload images for content items or profile pictures. Theyâ€™ll just upload huge images without considering bandwidth and disk space. Soon you have hundreds images above 2MB in size cluttering your precious harddisk space and taking up all of the bandwidth with just a few pageviews.
So how do you conquer this problem? Well, resize the images automatically. Keeping their ratio and quality but reducing their size significantly.
Continue reading PHP Image upload and resize
Pictures may be the element you most wish to insert into your web pages other than text. Whether it is a photo or a graphic image, the HTML tag to do it is the same. Here’s an example of the <img> tag with its often used key attributes:
<img src=”images/my” alt=”MyPicture” width=”160″ height=”120″ hspace=”10″ vspace=”10″ align=”left” border=”0″ />
Continue reading Insert Picture and Images in html