What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

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
add comment

2 Answers

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
add comment

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
add comment

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