Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

How can I write HTML?

HTML

  • This topic is locked This topic is locked
6 replies to this topic

#1 dirkfirst

dirkfirst

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 351 posts

Posted 18 May 2006 - 06:10 AM

How do I write HTML such as <b>test</b>????? Not just a bold test but showing the actual less than and greater than code.
  • 0

#2 brackett

brackett

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 192 posts

Posted 22 May 2006 - 10:36 AM

You have to escape them with HTML entities. For instance, less than is < and greater than is > So you'd write:
<b>test<b>

If you do a view source on this page, you should see that your actual comment is using the entities.
  • 0

#3 dirkfirst

dirkfirst

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 351 posts

Posted 22 May 2006 - 10:40 AM

wow, thanks! I didn't realize that it was so easy.

I never thought to view the source on this page either.
  • 0

#4 Guest_cpvr_*

Guest_cpvr_*
  • Guest

Posted 17 June 2006 - 09:14 PM

You have to escape them with HTML entities. For instance, less than is < and greater than is > So you'd write:
<b>test<b>

If you do a view source on this page, you should see that your actual comment is using the entities.

Why's that? Can't you still use the regular html tags?
  • 0

#5 dirkfirst

dirkfirst

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 351 posts

Posted 19 June 2006 - 02:09 PM

Yeah, you can use regular HTML tags but I need to know how to actually write the < and > so they didn't show up as HTML.
  • 0

#6 the-chad

the-chad

    CC Newcomer

  • Just Joined
  • PipPip
  • 22 posts

Posted 22 June 2006 - 06:11 PM

> for >
< for <
  • 0

#7 DevilsCharm

DevilsCharm

    Programming God

  • Just Joined
  • PipPipPipPipPipPip
  • 858 posts

Posted 04 July 2006 - 11:10 AM

Ahhh, I get it, gt = greater than, lt = less than. I've always wondered how one would do that, because it would just convert into whatever the HTML code was. Very interesting.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download