SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: html question

  1. #1
    SitePoint Addict
    Join Date
    May 2005
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    html question

    Hi,

    I need to display html tags in html page. If I place them in html code a browser interprets them as html code but not as symbols.

    For example, I want to show <strong> tag to the user how can I do this?
    If I directly place <strong> into html code the browser will make font bold but this is not what I want.

    Any clues?

    Thank you.

  2. #2
    SitePoint Addict
    Join Date
    May 2005
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh,
    got it I have to use &lt; and &gt; instead of angle brackets.

    thanks.

  3. #3
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi thisObject, you will find a complete list of HTML Entities (as they are known) at the following link.

    http://www.w3schools.com/tags/ref_entities.asp

    Regards,
    Jordan


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •