Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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 >

share|improve this question

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

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

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.

2  
You simply need to indent your code with 4 spaces – Daniel Vassallo Aug 2 '10 at 19:04
up vote 3 down vote accepted

HTML - How to post HTML in StackOverflow

share|improve this answer
1  
This button is no longer available – Madbreaks May 10 '12 at 19:22

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>
share|improve this answer
    
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 .