HTML Ordered Lists To Create Ordered List: 1. Type the title of the Ordered list. 2. Type <OL>. 3. Type <LI> 4. Type the list item to be included in the list. 5. Repeat steps 3 and 4 for each list item to be added 6. Type </OL> Ordered lists <HTML> <HEAD><TITLE> players listing – ordered </TITLe></HEAD> <BODY> <P> <H1 align=”center”> players selected </H1> <FONT SIZE=15pt”> <OL type=”1”> <LI> Mike Owen <LI> Wayne Rooney <LI> David Beckham </OL> </FONT> </P> </BODY> </HTML>
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
HTMLOrdered ListsTo Create Ordered List:1. Type the title of the Ordered list.2. Type <OL>.3. Type <LI>4. Type the list item to be included in the list.5. Repeat steps 3 and 4 for each list item to be added6. Type </OL>Ordered lists<HTML><HEAD><TITLE> players listing – ordered </TITLe></HEAD><BODY><P> <H1 align=”center”> players selected </H1><FONT SIZE=15pt”><OL type=”1”><LI> Mike Owen<LI> Wayne Rooney<LI> David Beckham</OL></FONT></P> </BODY> </HTML>
Unordered list<HTML><HEAD><TITLE> players listing – unordered </TITLE></HEAD><BODY><P><H1 align=”center”> Players selected </H1><FONT SIZE=”15pt”><UL TYPE=”square”><LI> Mike Owen<LI> Wayne Rooney<LI> David Beckham</UL></FONT></P></BODY></HTML>
Definition list
<HTML><HEAD><TITLE> Mushrooms – Definition</TITLE></HEAD><BODY><P><H1 align=”center”> Mushrooms </H1><FONT SIZE=”15pt”><DL><DT> <STRONG>Chanterelle</STRONG><DD> Bright yellow mushroom with wavy margin and yellow-orange, forked, thickedged ridges<DT> <STRONG>Chicken Mushroom</STRONG><DD> Single to overlappy clusters offleshy, orange-red to orange-yellow caps.<DT> <STRONG>Kurotake</STRONG><DD> Fleshy, gray to brownish or blackish, smooth cap with whitish pores.</DL></FONT></P></BODY></HTML>
Tables in HTML<HTML><HEAD><TITLE> Simple HTML table </TITLE></HEAD><BODY><TABLE BORDER=”5” WIDTH=”40 %”><CAPTION><STRONG>Players and Teams </STRONG></CAPTION><TH><TR><TD> First Name </td> <td> Second Name </td> <td>Team </TD></TR></TH><BODY><TR> <TD> Glenn</TD> <TD> Megrath </TD> <TD> Austraila </TD> </TR><TR> <TD> Irfan </TD><TD> Pathan </TD><TD> India </TD> </TR></TBODY></TABLE></FONT></BODY><HTML>
HTML forms (with a text box, password, radio button and a button)<HTML><HEAD><TITLE> Banking Page – form demo </TITLE></HEAD><BODY text=black><FORM method=”get” action=”demoone.html”><T><B><H2> Deutsche Bank </H2></B></I><LABEL> <H2>A/C NO.</H2> </LABEL><INPUT type=”text” name=”acno”><BR><LABEL> <H2>PIN</H2> </LABEL><INPUT type=password name=”pin”> <BR><LABEL> <H2>BALANCE ENQUIRY</H2> </LABEL><INPUT type =radio name=”enq”> <BR><LABEL> <H2>TRANSACTION STATEMENT </H2></LABEL><INPUT type =radio name=”statement”><BR><INPUT type=BUTTON value=Submit><BR></FORM></BODY></HTML>
Frames and Framesets<HTML><HEAD><TITLE> FRAMES </TITLE></HEAD><FRAMESET rows="33%,*"><FRAME name="f1" src="example3-3.html"><FRAMESET cols="50%,*"><FRAME name "f2" src="example4-3.html"><FRAME name="f3" src="example4-2.html"></FRAMESET></FRAMESET></HTML>
CSS
2. How to repeat a background image only horizontally <html><head><style type="text/css">body{background-image:url('gradient2.png');background-repeat:repeat-x;}
<html><body><script type="text/vbscript">Dim x(1,1)x(0,0)="Volvo"x(0,1)="BMW"x(1,0)="Apple"x(1,1)="Orange"for i=0 to 1 document.write("<p>") for j=0 to 1 document.write(x(i,j) & "<br />") next document.write("</p>")next</script></body></html>
3. For...Next statement to run a block of code a specified number of times
<html><body><script type="text/vbscript">For i = 0 To 5 document.write("The number is " & i & "<br />")Next</script></body></html>
The counter variable (i) is INCREASED by two, each time the loop repeats
The counter variable (i) is DECREASED by two, each time the loop repeats
You can exit a For...Next statement with the Exit For keyword
For i=2 To 10 Step 2 some codeNext
For i=10 To 2 Step -2 some codeNext
For i=1 To 10 If i=5 Then Exit For some codeNext
4. A For Each...Next loop repeats a block of code for each item in a collection, or for each element of an array.
<html><body><script type="text/vbscript">Dim cars(2)cars(0)="Volvo"cars(1)="Saab"cars(2)="BMW"For Each x In cars document.write(x & "<br />")Next</script></body> </html>
5. If...Then...ElseIf
<html><body><head><script type="text/vbscript">Function greeting()i=hour(time)If i = 10 Then document.write("Just started...!")ElseIf i = 11 then document.write("Hungry!")ElseIf i = 12 then document.write("Ah, lunch-time!")ElseIf i = 16 then document.write("Time to go home!")Else
<html><body><script type="text/vbscript">document.write("Today's date is " & Date())document.write("<br />")document.write("The time is " & Time())</script></body></html>
11. Return a specified number of characters from the left or right side of a string<html><body><script type="text/vbscript">sometext="Welcome to our Web Site!!"document.write(Left(sometext,5))document.write("<br />")document.write(Right(sometext,5))</script></body></html>
12. Return a specified number of characters from a string
<html><body>
<script type="text/vbscript">sometext="Welcome to our Web Site!!"
8. Function to accept and return the product of two parameters
<html>
<head>
<script type="text/javascript">
function product(a,b)
{
return a*b;
}
</script>
</head>
<body>
<script type="text/javascript">
document.write(product(4,3));
</script>
</body>
</html>
JSPThe following example will declare two variables; one string used to store the name of a website and an integer called counter that displays the number of times the page has been accessed. There is also a private method declared to increment the counter. The website name and counter value are displayed.