using the CSS property "font-size:" 1 .. 6 in that way would not equate to the HTML sizes 1 to 6.
CSS requires a unit be specified (px, em, ex) etc. The nearest sizes to 1 .. 6 in CSS are the named sizes (x-small, small, medium, large, x-large, xx-large)
so to avoid using the deprecated font tag the code would be:
Code:
<%
dim FSize(6)
dim x
FSize(0) = "xx-small"
FSize(1) = "x-small"
FSize(2) = "small"
FSize(3) = "medium"
FSize(4) = "large"
FSize(5) = "x-large"
FSize(6) = "xx-large"
for x = 1 to ubound(FSize)
with response
.write "<div style="
.write chr(34)
.write "font-size: "
.write FSize(x)
.write chr(34)
.write ">"
.write "Hello VNSGU"
.write "</div>"
end with
next
%> Coding it this way and using chr(34) to write a quote (") to the browser will give you validating XHTML as well.