Table data is normally repeatable by nature. ng-repeat directive can be used to draw table easily. Following example states the use of ng-repeat directive to draw a table. <table> <tr> <th> Name </th> <th> Marks </th> </tr> <tr ng-repeat = "subject in student.subjects" > <td> {{ subject.name }} </td> <td> {{ subject.marks }} </td> </tr> </table> Table can be styled using CSS Styling. <style> table , th , td { border : 1px solid grey ; border - collapse : collapse ; padding : 5px ; } table tr : nth - child ( odd ) { background - color : #f2f2f2; } table tr : nth - child ( even ) { background - color : #ffffff; } </style> Example Following example will showcase all the above mentioned directive. <html> <head> <...
<!-- This Script is from www.crestinfotech.com, Provided by: Manish Vagh -->
<html>
<title>GUI application</title>
<head><h2>E-MAIL REGISTATION FORM<font color="0a00aa"<h2></head>
<body bgcolor="0aaa0a">
<marquee behavior="scroll" direction="right" bgcolor="violet" scrollamount="20" scrolldelay="200" loop="20"> <h4>Registation free..</h4></marquee>
<table border="25%" width="50%" height="50%" align="left" background="image.jpg" cellpadding="00" >
<from>
<tr>
<td>First Name</td>
<td><input type="name"></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="name"></td>
</tr>
<tr>
<td>Address</td>
<td><textarea></textarea><td>
</tr>
<tr>
<td>User-id</td>
<td><input type="name"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password"></td>
</tr>
<tr>
<td>D.O.B.</td>
<td><select>
<option>day</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select>
<option>month</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select>
<option>year</option>
<option>1990</option>
<option>1991</option>
<option>1992</option>
<option>1993</option>
<option>1994</option>
<option>1995</option>
<option>1996</option>
<option>1997</option>
<option>1998</option>
<option>1999</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
<option>2011</option>
<option>2012</option>
<option>2013</option>
</select></td>
</tr>
<tr>
<td>Gender</td>
<td><input type="radio">Male <input type="radio">Female</td>
</tr>
<td>hobbies</td>
<td>
<table>
<tr>
<td><input type="checkbox">dancing</td>
<td><input type="checkbox">singing</td>
<td><input type="checkbox">biking</td>
</tr>
<tr>
<td><input type="checkbox">facebook</td>
<td><input type="checkbox">playing games</td>
<td><input type="checkbox">others</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><input type="checkbox">I accept the term & conditions</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"><input type="reset"></td>
</tr>
<td </table>
</body>
</html>
<a target="_blank" href="http://www.crestinfotech.com" style="font-size: 8pt; text-decoration: none">CrestInfotech</a>
<html>
<title>GUI application</title>
<head><h2>E-MAIL REGISTATION FORM<font color="0a00aa"<h2></head>
<body bgcolor="0aaa0a">
<marquee behavior="scroll" direction="right" bgcolor="violet" scrollamount="20" scrolldelay="200" loop="20"> <h4>Registation free..</h4></marquee>
<table border="25%" width="50%" height="50%" align="left" background="image.jpg" cellpadding="00" >
<from>
<tr>
<td>First Name</td>
<td><input type="name"></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="name"></td>
</tr>
<tr>
<td>Address</td>
<td><textarea></textarea><td>
</tr>
<tr>
<td>User-id</td>
<td><input type="name"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password"></td>
</tr>
<tr>
<td>D.O.B.</td>
<td><select>
<option>day</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select>
<option>month</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select>
<option>year</option>
<option>1990</option>
<option>1991</option>
<option>1992</option>
<option>1993</option>
<option>1994</option>
<option>1995</option>
<option>1996</option>
<option>1997</option>
<option>1998</option>
<option>1999</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
<option>2011</option>
<option>2012</option>
<option>2013</option>
</select></td>
</tr>
<tr>
<td>Gender</td>
<td><input type="radio">Male <input type="radio">Female</td>
</tr>
<td>hobbies</td>
<td>
<table>
<tr>
<td><input type="checkbox">dancing</td>
<td><input type="checkbox">singing</td>
<td><input type="checkbox">biking</td>
</tr>
<tr>
<td><input type="checkbox">facebook</td>
<td><input type="checkbox">playing games</td>
<td><input type="checkbox">others</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><input type="checkbox">I accept the term & conditions</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"><input type="reset"></td>
</tr>
<td </table>
</body>
</html>
<a target="_blank" href="http://www.crestinfotech.com" style="font-size: 8pt; text-decoration: none">CrestInfotech</a>
Comments
Post a Comment
Comment