|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Small question...
what would if do If say I wanted to put on a page
the HTML tags. for example. I would place the code <B> and </B> the html sign for bold but instead of of going bold like this I want it to be viewed as <B> </B> the html sign for bold. Anyone know how to do this? Thanks. |
|
#2
|
||||
|
||||
|
Place the following inside you HTML code:
Code:
<B> </B>
__________________
Keep it Prodigy, Keep it Real Last edited by ProEdge : March 17th, 2005 at 02:51 AM. |
|
#3
|
||||
|
||||
|
Very good ProEdge, not much to add here except that these are called HMTL entities.
You can find out more about HTML Entities Here
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#4
|
||||
|
||||
|
Although the <b> element is depreciated in favor of the more semantic <strong> and <em> elements, since they convey meaning, rather than just presentation.
Whilst the <b> element does have legitimate uses, use of <span> with an appropriate class attribute is preferred. |
|
#5
|
|||
|
|||
|
okay! Thank you everyone for your help!
|
|
#6
|
||||
|
||||
|
if you're using server side code, you have Server.HTMLEncode method that is replacing all of this automatically:
Code:
Response.Write(Server.HTMLEncode("<span style=""font-weight: bold;"">hello</span>"))
this is the sample code for the Dude's advice. ![]() |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Small question... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|