ok i forgot how to do this i want to be able to show <HTML> instead of it being coed how do i do this?
Printable View
ok i forgot how to do this i want to be able to show <HTML> instead of it being coed how do i do this?
use < and >
is this what you mean?Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<pre>
<html>
<head>
<!-- comments-->
</head>
</html>
</pre>
</body>
</HTML>
kind of i know there is a code like <text> or something that what ever is in between these inclosures they display the code without running it automatically
<pre>
and
</pre>
and <xmp>
or how about:
To display HTML code on your page, if you are using ASP, you can do this:
<%=Server.HTMLEncode("<table>")%>
It will embed it as <table> in your HTML, resulting in the display of <table>.
what if i dont add ")%> to the end will it still work ?
No, you are sending information to a function. You can put more inside the function, but you can not omit the end stuff.
The string to be displayed goes in the ""
The string sent to the function goes in the ()
Any VBScript code must be inside <% %> tags.
Are you trying to put more information inside the function? If so, go ahead, but you still must keep the end stuff.
Example:
Hope that helps clarify it some more. I would read up on ASP if you don't understand why it works. A good book would be the Sams Teach Yourself ASP 3.0 in 21 Days. It was written by the guys at www.4guysfromrolla.com. Another great place to go.Code:<%=Server.HTMLEncode("<table>")%> <br>
<%=Server.HTMLEncode("<tr>")%><br>
<%=Server.HTMLEncode("<td>Enter your table data here</td>")%><br>
<%=Server.HTMLEncode("</tr>")%><br>
<%=Server.HTMLEncode("</table>")%>