Tuesday, 17 July 2012

How to Draw a border around form-data using html

<!DOCTYPE html> <html> <body> <form action=""> <fieldset> <legend>Personal information:</legend> Name: <input type="text" size="30" /><br /> E-mail: <input type="text" size="30" /><br /> Date of birth: <input type="text" size="10" /> </fieldset> </form> </body> </html> Result is: Personal information: Name: E-mail:...

Tuesday, 17 July 2012 by Unknown · 0

How to create a button using html

<!DOCTYPE html> <html> <body> <form action=""> <input type="button" value="Hello!"> </form> </body> </html> Result: ...

by Unknown · 0

How to create textarea using html

<div dir="ltr" style="text-align: left;" trbidi="on"> <br /> <textarea cols="30" rows="10">My dog is here </textarea> </div> ...

by Unknown · 0

How to create simple drop down list using html

<!DOCTYPE html> <html> <body> <form action=""> <select name="cars"> <option value="maruthi">maruthi</option> <option value="hyundai">hyundai</option> <option value="fiat">Fiat</option> <option value="audi">Audi</option> </select> </form> </body> </html>...

by Unknown · 0

How to create radio buttons using html

<!DOCTYPE html> <html> <body> <form action=""> <input type="radio" name="sex" value="male" /> Male<br /> <input type="radio" name="sex" value="female" /> Female </form> <p><b>Note:</b> When a user clicks on a radio-button, it becomes checked, and all other radio-buttons with equal name become unchecked.</p> </body> </html>...

by Unknown · 0

How to create checkboxes using html

<!DOCTYPE html> <html> <body> <form action=""> <input type="checkbox" name="vehicle" value="cycle" /> I have a cycle<br /> <input type="checkbox" name="vehicle" value="Car" /> I have a car </form> </body> </html>...

by Unknown · 0

How to create username and password field using html

<!DOCTYPE html> <html> <body> <form action=""> Username: <input type="text" name="user" /><br /> Password: <input type="password" name="password" /> </form> <p><b>Note:</b> The characters in a password field are masked (shown as asterisks or circles).</p> </body> </html>...

by Unknown · 0

How to create Create text fields using html

<!DOCTYPE html> <html> <body> <form action=""> First name: <input type="text" name="firstname" /><br /> Last name: <input type="text" name="lastname" /> </form> <p><b>Note:</b> The form itself is not visible. Also note that the default width of a text field is 20 characters.</p> </body> </html>...

by Unknown · 0

How to create definition list using html

<!DOCTYPE html> <html> <body> <h4>A Definition List:</h4> <dl>   <dt>Coffee</dt>   <dd>Black hot drink</dd>   <dt>Milk</dt>   <dd>White cold drink</dd> </dl> </body> </html> ...

by Unknown · 0

How to create Nested list using html

<!DOCTYPE html> <html> <body> <h4>A nested List:</h4> <ul>   <li>Tea</li>   <li>Cocoa     <ul>     <li>Black tea</li>     <li>Cocoa</li>     </ul>   </li>   <li>Milk</li> </ul> </body> </html> ...

by Unknown · 0

How to create Different types of unordered Lists sing html

<!DOCTYPE html> <html> <body> <h4>Disc bullets list:</h4> <ul type="disc">  <li>Banana</li>  <li>Bananas</li>  <li>Lemon</li>  <li>Orange</li> </ul> <h4>Circle bullets list:</h4> <ul type="circle">  <li>Apples</li>  <li>Bananas</li>  <li>plum</li>  <li>palm</li> </ul>...

by Unknown · 0

How to create Different types of ordered lists using html

<!DOCTYPE html> <html> <body> <h4>Numbered list:</h4> <ol>  <li>plum</li>  <li>lemon</li>  <li>juice</li>  <li>Oranges</li> </ol> <h4>Letters list:</h4> <ol type="A">  <li>papays</li>  <li>banyan</li>  <li>Lemons</li>  <li>Oranges</li> </ol>...

by Unknown · 0

How to create an ordered list using html

<!DOCTYPE html> <html> <body> <h4>An Ordered List:</h4> <ol>   <li>sugar</li>   <li>rice</li>   <li>spices</li> </ol> </body> </html>...

by Unknown · 0

How to create an unordered list using html

<!DOCTYPE html> <html> <body> <h4>An Unordered List:</h4> <ul>   <li>sugar</li>   <li>Tea</li>   <li>complan</li> </ul> </body> </html>...

by Unknown · 0

How to attribute frame using html

<!DOCTYPE html> <html> <body> <p> <b>Note:</b> If you see no frames/borders around the tables below, your browser does not support the "frame" attribute. </p> <h4>With frame="border":</h4> <table frame="border"> <tr>   <td>First</td>   <td>Row</td> </tr>   <tr>   <td>Second</td>   <td>Row</td> </tr> </table> <h4>With...

by Unknown · 0

How to space cells using html

Note: This control the distance between cells <!DOCTYPE html> <html> <body> <h4>Without cellspacing:</h4> <table border="1"> <tr>   <td>First</td>   <td>Row</td> </tr> <tr>   <td>Second</td>   <td>Row</td> </tr> </table> <h4>With cellspacing="0":</h4> <table border="1"...

by Unknown · 0

How to padd cells using html

Note: This control the white space between cell content and the borders <!DOCTYPE html> <html> <body> <h4>Without cellpadding:</h4> <table border="1"> <tr>   <td>First</td>   <td>Row</td> </tr>   <tr>   <td>2</td>   <td>2</td> </tr> </table> <h4>With cellpadding:</h4> <table...

by Unknown · 0

How to createTags inside a table using html

<!DOCTYPE html> <html> <body> <table border="1"> <tr>   <td>    <p>This is a paragraph</p>    <p>This is another paragraph</p>   </td>   <td>This cell contains a table:    <table border="1">    <tr>      <td>A</td>      <td>B</td>  ...

by Unknown · 0

How to create Table cells that span more than one row/column

<!DOCTYPE html> <html> <body> <h4>Cell that spans two columns:</h4> <table border="1"> <tr>   <th>Name</th>   <th colspan="2">Telephone</th> </tr> <tr>   <td>Bill bore</td>   <td>555 77 888</td>   <td>555 77 888</td> </tr> </table> <h4>Cell that spans two rows:</h4> <table...

by Unknown · 0

How to create Table with a caption using html

<!DOCTYPE html> <html> <body> <table border="1">   <caption>Monthly spend</caption>   <tr>     <th>Month</th>     <th>spend</th>   </tr>   <tr>     <td>January</td>     <td>$100</td>   </tr>   <tr>     <td>February</td>  ...

by Unknown · 0

How to create Table headers in html

<!DOCTYPE html> <html> <body> <h4>Table headers:</h4> <table border="1"> <tr>   <th>Name</th>   <th>Telephone</th>   <th>Telephone</th> </tr> <tr>   <td>Bill bore</td>   <td>555 77 888</td>   <td>555 77 888</td> </tr> </table> <h4>Vertical headers:</h4> <table...

by Unknown · 0

How to create tables without borders using html

<!DOCTYPE html> <html> <body> <h4>This table has no borders:</h4> <table> <tr>   <td>10</td>   <td>20</td>   <td>30</td> </tr> <tr>   <td>40</td>   <td>50</td>   <td>60</td> </tr> </table> <h4>And this table has no borders:</h4> <table border="0"> <tr>  ...

by Unknown · 0

How to create Different table borders using html

<!DOCTYPE html> <html> <body> <h4>With a normal border:</h4> <table border="1"> <tr>   <td>1</td>   <td>2</td> </tr>   <tr>   <td>3</td>   <td>4</td> </tr> </table> <h4>With a thick border:</h4> <table border="8"> <tr>   <td>1</td>   <td>2</td> </tr>...

by Unknown · 0

How to create Simple tables using html

<!DOCTYPE html> <html> <body> <p> Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag. </p> <h4>One column:</h4> <table border="1"> <tr>   <td>10</td> </tr> </table> <h4>One row and three columns:</h4> <table border="1"> <tr>   <td>10</td>  ...

by Unknown · 0

How to Create an image-map, with clickable regions using html

<!DOCTYPE html> <html> <body> <p>Click on the sun or on one of the planets to watch it closer:</p> <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <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...

by Unknown · 1

How to Make a hyperlink of an image using html

<!DOCTYPE html> <html> <body> <p>Create a link of an image: <a href="url here"> <img src="smiley.gif" alt="HTML tutorial" width="32" height="32" /> </a></p> <p>No border around the image, but still a link: <a href="url here"> <img border="0" src="smiley.gif" alt="HTML tutorial" width="32" height="32" /> </a></p> </body> </html>...

by Unknown · 0

How to Let the image float to the left/right of a paragraph using html

<!DOCTYPE html> <html> <body> <p> <img src="smiley.gif" alt="Smiley face" align="left" width="32" height="32" /> The align attribute of the image is set to "left". The image will float to the left of this text. </p> <p> <img src="smiley.gif" alt="Smiley face" align="right" width="32" height="32" /> The align attribute of the image is set to "right". The image will float to the...

by Unknown · 0

How to align images in html

<!DOCTYPE html> <html> <body> <p>An image <img src="smiley.gif" alt="Smiley face" align="bottom" width="32" height="32" /> with align="bottom".</p> <p>An image <img src="smiley.gif" alt="Smiley face" align="middle" width="32" height="32" /> with align="middle".</p> <p>An image <img src="smiley.gif" alt="Smiley face" align="top" width="32" height="32" /> with...

by Unknown · 0

how to Insert images from another folder or another server in html

<!DOCTYPE html> <html> <body> <p>An image from another folder:</p> <img src="your image" alt="name of image" width="33" height="32" /> <p>An image from website:</p> <img src="image url here" alt="name here" width="104" height="142" /> </body> </html>...

by Unknown · 0

How to Insert images in html

<!DOCTYPE html> <html> <body> <p> An image: <img src="here your img.gif" alt="name of image" width="32" height="32" /> </p> <p> A moving image: <img src="here your img.gif" alt=" name of image " width="48" height="48" /> </p> <p> Note that the syntax of inserting a moving image is no different from a non-moving image. </p> </body> </html>...

by Unknown · 0

How to add Another mailto link in html

<!DOCTYPE html> <html> <body> <p> This is another mailto link: <a href="example@example.com?cc=example@example.com&bcc=andexample@example.com&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!">Send mail!</a> </p> <p> <b>Note:</b> Spaces between words should be replaced by %20 to ensure that the browser will display the text...

by Unknown · 0

How to link to a mail message in html

<!DOCTYPE html> <html> <body> <p> This is an email link: <a href="example@example.com?Subject=Hello%20again"> Send Mail</a> </p> <p> <b>Note:</b> Spaces between words should be replaced by %20 to ensure that the browser will display the text properly. </p> </body> </html> Note: will only work if you have mail installe...

by Unknown · 0

how to Break out of a frame in html

<!DOCTYPE html> <html> <body> <p>Locked in a frame?</p> <a href="collegeprojectandtests.blogspot.com/" target="_top">Click here!</a> </body> </html>...

by Unknown · 0

How to Jump to another part of a document in html

<!DOCTYPE html> <html> <body> <p> <a href="#C4">See also Chapter 4.</a> </p> <h2>Chapter 1</h2> <p>use your texts here</p> <h2>Chapter 2</h2> <p> use your texts here </p> <h2>Chapter 3</h2> <p> use your texts here </p> <h2><a name="C4">Chapter 4</a></h2> <p> use your...

by Unknown · 0

How to Open link in a new browser window using html

<!DOCTYPE html> <html> <body> <a href="collegeprojectandtests.blogspot.com" target="_blank">Visit collegeprojectandtests.blogspot.com!</a> <p>If you set the target attribute to "_blank", the link will open in a new browser window/tab.</p> </body> </html> ...

by Unknown · 0

How to Use an image as a link in html

<!DOCTYPE html> <html> <body> <p>Create a link of an image: <a href="default.asp"> <img src="smiley.gif" alt="HTML tutorial" width="32" height="32" /> </a></p> <p>No border around the image, but still a link: <a href="default.asp"> <img border="0" src="smiley.gif" alt="HTML tutorial" width="32" height="32" /> </a></p> </body> </html&g...

by Unknown · 0

How to create hyperlinks in html

<!DOCTYPE html> <html> <body> <p> <a href="default.asp">HTML Tutorial</a> This is a link to a page on this website. </p> <p> <a href="collegeprojectandtests.blogspot.com/">Cpt</a> This is a link to a website on the World Wide Web. </p> </body> </html>...

by Unknown · 0

How to Link to an external style sheet using html

<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="styles.css" /> </head> <body> <h1>formatted with an external style sheet</h1> <p>ok!</p> </body> </html> ...

by Unknown · 0

How to Link that is not underlined in html

<!DOCTYPE html> <html> <body> <a href=" http://collegeprojectandtests.blogspot.in/ " style="text-decoration:none;">Visit  http://collegeprojectandtests.blogspot.in/ !</a> </body> </html>...

by Unknown · 0

How to Using styles in HTML

<!DOCTYPE html> <html> <head> <style type="text/css"> h1 {color:red;} h2 {color:blue;} p {color:green;} </style> </head> <body> <h1>All the elements here will be red</h1> <h2>All header 2 elements her will be blue</h2> <p>All text in paragraphs here will be green.</p> </body> </html> ...

by Unknown · 0

How to Set the font, font size, and font color of text in html

<!DOCTYPE html> <html> <body> <p style="font-family:verdana;font-size:110%;color:green"> insert the text you want to use </p> </body> </html> ...

by Unknown · 0

How to Set the font color of text in html

<!DOCTYPE html> <html> <body> <h1 style="color:blue">This is heading</h1> <p style="color:red">This is  paragraph.</p> </body> </html> ...

by Unknown · 0

How to Set the font size of text in html

<!DOCTYPE html> <html> <body> <h1 style="font-size:200%">This is heading</h1> <p style="font-size:110%">This is  paragraph.</p> </body> </html> ...

by Unknown · 0

How to Set the font of text in html

<!DOCTYPE html> <html> <body> <h1 style="font-family:verdana">This is heading</h1> <p style="font-family:courier">This is  paragraph.</p> </body> </html> ...

by Unknown · 0

How to Style alignment of text in html

<!DOCTYPE html> <html> <body> <h1 style="text-align:center;">Center heading</h1> <p>This is  paragraph.</p> </body> </html>...

by Unknown · 0

How to Style font, color, and size in html

<!DOCTYPE html> <html> <body> <h1 style="font-family:verdana;">heading</h1> <p style="font-family:arial;color:red;font-size:20px;">paragraph.</p> </body> </html>...

by Unknown · 0

How to Style background color in html

<!DOCTYPE html> <html> <body style="background-color:yellow;"> <h2 style="background-color:red;">Line 1</h2> <p style="background-color:green;">line 2</p> </body> </html>...

by Unknown · 0

how to Style HTML elements

<!DOCTYPE html> <html> <body style="background-color:PowderBlue;"> <h1>Look! Styles and colors</h1> <p style="font-family:verdana;color:red;"> This text is in Verdana and red</p> <p style="font-family:times;color:green;"> This text is in Times and green</p> <p style="font-size:30px;">This text is 30 pixels high</p> </body> </html> ...

by Unknown · 0

How to mark deleted and inserted text using html

<!DOCTYPE html> <html> <body> <p>My favorite pen is <del>parker</del> <ins>reynolds</ins>!</p> <p>Notice that browsers will strikethrough deleted text and underline inserted text.</p> </body> </html>...

by Unknown · 0

How to write Long and short quotations using html

<!DOCTYPE html> <html> <body> A long quotation: <blockquote> This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. </blockquote> <p><b>Note:</b> The browser inserts white space before and after a blockquote element. It also inserts margins.</p> A short quotation: <q>This is a short quotation</q> <p><b>Note:</b>...

by Unknown · 0