punkmama
04-04-2007, 01:32 PM
Anyone know? I need to know how to make tags show up on my page just like on HTMLGoodies.com
Thanks 4 Your Help!
Thanks 4 Your Help!
|
Click to See Complete Forum and Search --> : How Do You Make Code Show On Page punkmama 04-04-2007, 01:32 PM Anyone know? I need to know how to make tags show up on my page just like on HTMLGoodies.com Thanks 4 Your Help! gil davis 04-04-2007, 02:05 PM Since you haven't given us a specific link, it is hard to say. punkmama 04-04-2007, 02:42 PM i would like some HTML code to be visible on my page. just as it would be if you were on a HTML tutorial site. like: <*div align=center><*a href="http://www.myspace.com"><*img src="insert image here" border="0"> but without the *. I would like to show how to do html, for that I need the code to show on the page...not be part of the page. gooncorp 04-04-2007, 02:44 PM change every '<' to '<' and every '>' to '>', without the 's. Does that help? punkmama 04-04-2007, 02:50 PM I don't know... let me try... punkmama 04-04-2007, 02:56 PM change every '<' to '<' and every '>' to '>', without the 's. Does that help? No, unfortunately it didn't :( gooncorp 04-04-2007, 03:00 PM What exactly are you trying to do? From what I can see, you are trying to get some HTML code to show up on the screen. If this is the case, using > and < is how I would do it. I'm not too sure how else it can be done, you could try using <pre> and </pre> around the code you're putting on the page, but I've never done this myself so I can't tell you if it works or not. punkmama 04-04-2007, 03:11 PM ok, the only way i can think to explane it clearly is look at this page <A HREF="http://www.htmlgoodies.com/tutorials/getting_started/article.php/3479311">Click Here</A> See how he's showing you how to do HTML buy having the tags visible on the page, how does he do that? punkmama 04-04-2007, 03:13 PM Damn it, i guess you'll have to copy and paste cause HTML is apparently disabled gil davis 04-04-2007, 03:36 PM It is as gooncorp says. <IMG SRC="book.gif" ALIGN="----" WIDTH="70" ALT="A book"> tracknut 04-04-2007, 03:37 PM If you look at the page source for the link you gave, you'll see he's doing exactly what gooncorp suggested... You might show us *your* link that isn't working, there must be something wrong in it. Dave punkmama 04-04-2007, 04:03 PM hmmmm, your right. I guess myspace just blows Major Payne 04-05-2007, 04:57 PM Just in case you think you may be doing it wrong, try using this online tool: Displaying HTML Source Code in Web Pages (http://www.felgall.com/htmlt47.htm?fm) Ron • MaNiC MoE • 04-06-2007, 11:06 AM There is something called "Entities" For a complete tutorial about it, visit : http://www.w3schools.com/html/html_entities.asp Some characters like the < character, have a special meaning in HTML, and therefore cannot be used in the text. To display a less than sign (<) in HTML, we have to use a character entity. If you want to view some code on a page you're designing. Then use the entities. For example, if you want to show that <b> is for bold, then you have to write the following : ... <body><h1> <b> is for <b>bold</b> </body> This will show on the page : <b> is for bold. The "<" means the "<" sign and the ">" means the ">" sign. We use this not to confuse the computer with the source code text and the text to display. Plus, you can make the code in another colour to tell the visitor or annymous that it's an examle of a HTML code. For a list of Entities : http://www.w3schools.com/tags/ref_entities.asp Source : http://www.3schools.com/ (I'm learning how to use HTML from there...) Znupi 04-06-2007, 11:52 AM Manic Moe, no, the way to properly display "<b> is for bold" is like this: <b> is for <b>bold</b> • MaNiC MoE • 04-07-2007, 01:31 PM Well, there are two types of ways to write an entity : 1. Entitiy Number : &#NUMBER; 2. Entity Name : &#NAME; Both of them are the same. See http://www.w3schools.com/html/html_entities.asp To display a less than sign in an HTML document we must write: < or < The advantage of using a name instead of a number is that a name is easier to remember. The disadvantage is that not all browsers support the newest entity names, while the support for entity numbers is very good in almost all browsers. Note that the entities are case sensitive. From the refrence thx :) Znupi 04-08-2007, 06:25 AM It's &NAME;, without the # :P • MaNiC MoE • 04-08-2007, 06:56 AM ups! u'r rite... lol, thx webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |