| |
Noscript Tag
The noscript tag is used to display some alternate content if the script is not executed by the browser. This tag is used for the browsers which do not support scripting. The <noscript> tag of XHTML is exactly same as the <noscript> tag of HTML.
Example |
<script type=”javascript”> |
document.write(“How are you?”) |
</script> |
<noscript> Your browser does not support scripting. </noscript> |
| |
The following example illustrates a web page using Style Sheets
Style Sheet
body { |
font-family: Arial, helvetica, sans-serif; |
Color: blue; |
background :url(myimage.jpg); |
} |
|
P { |
font-family: arial, Helvetica, sans-serif |
} |
|
table{ |
color:#660000; |
border:5px none #FFCC99; |
width:250px; |
background-color: #FFFFCC; |
} |
|
td, th { |
font-family: Arial, Helvetica, sans-serif; |
font-size:20px; |
border: solid red; |
line-height: 2em; |
} |
|
H1,H2,H3,H4 |
{ color: #669999; |
font-weight: bold; |
} |
|
A: active { |
Color: #ff0000; |
} |
|
A: visited { |
Color: #999999; |
} |
|
UL, OL { |
font-family: arial, helvetica, sans-serif; |
} |
| |
HTML File
<html> |
|
<head> |
|
<title> My bag of jokes </title> |
<LINK REL="stylesheet" HREF="stsheet.css" TYPE="text/css"> |
|
</head> |
|
<body> |
|
<h2> Hello,this is My Jokes website.</h2> |
<h3>Table of jokes</h3> |
|
<table> |
|
<tr><th colspan=2> Jokes </th> </tr> |
<tr><td> Serial no.</td><td>Joke Type</td></tr> |
<tr><td>1.</td> <td> Classic Jokes </td></tr> |
<tr><td>2.</td> <td> Tennis Jokes </td></tr> |
|
</table> |
|
<h4>List of jokes</h4> |
|
<ul> |
<li>Classic jokes </li> |
<li>Math jokes </li> |
</ul> |
|
<b>Let's read a joke</b> |
|
<p> During their silver anniversary, a wife reminded her husband, “Do you
remember that when you proposed to me, I was so overwhelmed that I didn't
talk for an hour?"<br/> The hubby replied, "Yes, honey, that was the
happiest hour of my life."</p> |
|
<a href="frames.html" target="_blank">Frames Website</a> |
|
</body> |
</html> |
| |
|