html codes (Full Version)

All Forums >> [Community] >> Computer Software and Hardware issues



Message


lilactime68 -> html codes (3/7/2006 23:25:18)

Can anyone recommend a good tutorial for how to post html codes on a web page. To enable people to copy and paste codes for banners please?




Kitka -> RE: html codes (3/8/2006 1:18:30)

I don't think you need a tutorial.

Normal method is to place the code in a text area field of a form.

Like this:

<form>
<p><textarea rows="3" name="code" cols="30"><p>Your code here</p></textarea></p>
</form>


I think the code remains unaffected in most browsers.




d a v e -> RE: html codes (3/8/2006 9:13:02)

or use the <code> tag?!
http://www.w3.org/TR/html401/struct/text.html#edef-CODE




lilactime68 -> RE: html codes (3/8/2006 12:58:13)

Thank you very much for your help Kitka and Dave




Kitka -> RE: html codes (3/8/2006 18:50:34)

quote:

or use the <code> tag?!


The drawback of using the <code> tag, is that you have to translate the special characters so they will show on the page. e.g.

&_lt;p&_gt;this is a paragraph&_lt;/p&_gt;


NB: ( I had to add the "_" so it would show here!)

Whereas, if you use a form text area, the symbols appear normally as typed.




d a v e -> RE: html codes (3/9/2006 9:00:53)

but semantically it should be <code>, and seeing as how you're/we're into validation and doctypes and well formed code i thought that you would have preferred the use of <code>
;)




Kitka -> RE: html codes (3/9/2006 17:58:42)

Erm - never having used the method myself, I didn't realise it doesn't validate. Plus, I was trying to suggest the easiest method rather than the most correct.

For people using Notepad-type editing, using the form method could save significant time. But using FP (as I do) you only need to paste code into Normal (Design) view and FP translates the characters automatically.

So for me, using <code> tags would be perfect. [;)]




yb2 -> RE: html codes (3/9/2006 19:18:53)

quote:

you only need to paste code into Normal (Design) view and FP translates the characters automatically.


that is the best tip I've heard in AGES!

Thankyou for that, you've saved me so much future bother.




Kitka -> RE: html codes (3/9/2006 19:54:42)

quote:

Thankyou for that, you've saved me so much future bother.


You are very welcome! [:)]

It is amazing what helpful hints you can pick up while hanging around this forum - and have some fun along the way too. [;)]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625