Search the Whole World Here.,.,

HTML Table - Adding Cell Padding

HTML Table - Adding Cell Padding


Cell padding specifies the space between the cell content and its borders.

If you do not specify a padding, the table cells will be displayed without padding.

To set the padding, use the CSS padding property:

Example

th, td {
    padding: 15px;
}
Try it Yourself »

NetBeans आईडीई में ProgressBar का उपयोग कैसे करें

NetBeans आईडीई में ProgressBar का उपयोग कैसे करें

नमस्कार दोस्तों !

मैं के रूप में मैं वर्तमान में एक परियोजना है जिसमें मैं NewJFrame फार्म को स्थानांतरित करने के लिए ProgressBar उपयोग करना चाहते हैं पर काम कर रहा हूँ आपकी मदद की जरूरत है।

टिप्पणी बॉक्स में कोडिंग टिप्पणी करें।

आपको धन्यवाद

सादर

यार कोई प्रौद्योगिकी

How to use ProgressBar in Netbeans IDE

How to use ProgressBar in Netbeans IDE

Hello Friends !

I need your help as I am currently working on a project in which I want to use ProgressBar to move to NewJFrame Form.

Please comment the coding in comment box.

Thanking You

Regards

Yaar No Technology

HTML Table - Adding a Border

HTML Table - Adding a Border


If you do not specify a border for the table, it will be displayed without borders.

A border is set using the CSS border property:

Example

table, th, td {
    border: 1px solid black;
}
Try it Yourself »
Remember to define borders for both the table and the table cells.
Defining an HTML Table

Defining an HTML Table


An HTML table is defined with the table tag.

Each table row is defined with the tr tag. A table header is defined with the th tag. By default, table headings are bold and centered. A table data/cell is defined with the td tag.

Example

<table style="width:100%">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th> 
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td> 
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td> 
    <td>94</td>
  </tr>
</table>
Try it Yourself »
Note: The td elements are the data containers of the table.
They can contain all sorts of HTML elements; text, images, lists, other tables, etc.
Image Maps

Image Maps


Use the map tag to define an image-map. An image-map is an image with clickable areas.

The name attribute of the map tag is associated with the img's usemap attribute and creates a relationship between the image and the map.

The map tag contains a number of area tags, that defines the clickable areas in the image-map:

Example

<img src="planets.gif" alt="Planets" usemap="#planetmap" style="width:145px;height:126px;">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm">
  <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm">
  <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
Try it Yourself »

Image Floating

Image Floating


Use the CSS float property to let the image float to the right or to the left of a text:

Example

<p><img src="smiley.gif" alt="Smiley face" style="float:right;width:42px;height:42px;">
The image will float to the right of the text.</p>

<p><img src="smiley.gif" alt="Smiley face" style="float:left;width:42px;height:42px;">
The image will float to the left of the text.</p>
Try it Yourself »

Using an Image as a Link

Using an Image as a Link


To use an image as a link, simply nest the img tag inside the a tag:

Example

<a href="default.asp">
  <img src="smiley.gif" alt="HTML tutorial" style="width:42px;height:42px;border:0;">
</a>
Try it Yourself »
Note: border:0; is added to prevent IE9 (and earlier) from displaying a border around the image (when the image is a link).
Animated Images

Animated Images


The GIF standard allows animated images:

Example

<img src="programming.gif" alt="Computer Man" style="width:48px;height:48px;">
Try it Yourself »

Note that the syntax of inserting animated images is no different from non-

animated images.
Images on Another Server

Images on Another Server


Some web sites store their images on image servers.

Actually, you can access images from any web address in the world:

Example

<img src="http://www.w3schools.com/images/w3schools_green.jpg" alt="W3Schools.com">
Try it Yourself »

Images in Another Folder

Images in Another Folder


If not specified, the browser expects to find the image in the same folder as the web page.

However, it is common to store images in a sub-folder. You must then include the folder name in the src attribute:

Example

<img src="/images/html5.gif" alt="HTML5 Icon" style="width:128px;height:128px;">
Try it Yourself »
Images - Width and Height, or Style?

Images - Width and Height, or Style?


Both the width, height, and style attributes are valid in HTML5.

However, we suggest using the style attribute. It prevents internal or external styles 
sheets from changing the original size of images:

Example

<!DOCTYPE html>
<html>
<head>
<style>
img { 
    width:100%; 
}
</style>
</head>
<body>

<img src="html5.gif" alt="HTML5 Icon" style="width:128px;height:128px;">
<img src="html5.gif" alt="HTML5 Icon" width="128" height="128">

</body>
</html>
Try it Yourself »

Ads by Google