2

Possible Duplicate:
HowTo Post HTML Text On StackOverflow

I need to post some HTML code here for illustrating my questions. However, whenever I post the HTML, it is always interpreted by the page rather than display it directly.

I have tried the following methods, none of them work for me.

< XMP >

< /XMP >

< PRE > < /PRE >

< CODE > < /CODE >

marked as duplicate by Ladybug Killer, Grace Note, jjnguy, perbert, Jon Seigel Aug 4 '10 at 4:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Aug 2 '10 at 19:05

This question came from our site for professional and enthusiast programmers.

  • 2
    You simply need to indent your code with 4 spaces – Daniel Vassallo Aug 2 '10 at 19:04
2

HTML - How to post HTML in StackOverflow http://img696.imageshack.us/img696/9568/codeso.png

  • 2
    This button is no longer available – Madbreaks May 10 '12 at 19:22
4

Click the button which has:

101
010 

on it!

Post any code you like.

<html>
<body>
<div></div><p>a p tag</p><table><tr><td>some td</td></tr></table>
</body>
</html>
  • This button is no longer available – Madbreaks May 10 '12 at 19:22
  • @Madbreaks I believe you are correct. – Chris May 15 '12 at 18:38
  • So how do we do it now? – Ben Clayton Oct 11 '12 at 14:58

Not the answer you're looking for? Browse other questions tagged .