CS174
Chris Pollett
Sep 13, 2009
AddType text/html .shtml AddHandler server-parsed .shtmlin the httpd.conf file
Options +Includes
<!--#element attribute=value attribute=value ... -->
<!--#set var='bob' value='hello' --> <!--#echo var='bob' -->
<!--#echo var='QUERY_STRING' --> <!--#set var='bob' value='hello${DATE_LOCAL}' -->
<!--#config errmsg="[This is what the SSI error message will look like]" --> <!--#config timefmt="%d, %Y" -->
<!--#include virtual="footer.html" -->
<!--#if expr="\"${QUERY_STRING}\" = \"\" || \"${QUERY_STRING}\" = \"print\" " --> <!--#include virtual="classpage.html" --> <!--#else --> <!--#include virtual="${QUERY_STRING}" --> <!--#endif -->
Which of the following statements is true?
<!DOCTYPE html>
<p style="color: red">red paragraph</p>
<link rel="stylesheet" type="text/css" href="mystyles.css" />
<tag style="property_1: value1 ; property2: value2; ..." >
<style type="text/css" > /* 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 file, doesn't work NS7*/
p.normal {prop_list1} p.narrow {prop_list2}
<p class="normal">normal look text</p>
.red {color:red}
<h3 class="red"></h3> <p class="red"></p>
p#sec1 {prop_list2}To use this we do:
<p id="sec1">section1 text</p>