CS174
Chris Pollett
Feb 15, 2021
<table width="100%" border="0" summary="..." >the value can be a percentage or an absolute value in pixels. 0 here means no border.
<table width="100%" border="0" summary="..." > <col width="25%" /> <!-- can be a percentage or number of pixels --> <col width="75%" />
<tr align="center"><td>hi<td><td>there</td></tr> <!-- centers whole row -->
<td valign="top">test</td> <td valign="bottom">test</td>
<table border="5" cellspacing="30" cellpadding="5" summary="..." >
Which of the following statements is true?
<icon href="http://www.cs.sjsu.edu/faculty/pollett/favicon.ico" />
<form name="myform" method="get" action="http://somewhere.com/" > <!-- widgets or controls on form --> </form>
http://somewhere.com/?name1=value1&name2=value2...
<input type="text" name="my variable" value="optional default value" />
First Name: [ ]In order to ensure this in accessibility situations you must use the label tag:
<label for="testid" >First Name :</label> <input type="text" id="testid" name="test" value="test" />
<input type="text" id="search" name="search" title="Enter your search terms" placeholder="Enter your search terms"/>
<textarea name="life" rows="3" cols="40" > You can enter your life story here. </textarea>
<p style="color:red;">red paragraph</p>
<link rel="stylesheet" type="text/css" href="mystyles.css" />
<tag style="property_1: value1 ; property2: value2; ..." >
<style > /* here is a comment */ rule_list </style>
selector {property_1: value1 ; property2: value2; ...}
h1 {font-size: 24pt;} /* would apply to all h1 tags in the document */ h2, h3 {font-size: 14pt;} /* notice applies to both h2 and h3 tags */
You can also specify that styles should only apply to elements in certain positions within the file:
body b i {font-size: 30pt;} /* only for bolded italic'd text within body of HTML*/