Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Jason Anders
Treehouse Moderator 145,862 PointsPutting HTML tags into answers on a single line?
I'm sure I've done it before, but...
In answering some questions in the forum, I want to show an HTML tag within the sentence. I've enclosed the tag in backtick quotes, but it still renders in the answer as just ``. It's a tad frustrating having to type "put an h1 opening tag here and ..."
Anyone know how? I read the Markdown docs and it says to use backtick quotes... but that's doesn't seem to work!
7 Answers

jason chan
31,009 Pointsit's ``` html
"``` " remove quotes
no spaces

jason chan
31,009 Points<head></head>
you mean that right?

Jason Anders
Treehouse Moderator 145,862 PointsNo, Jason... that I know how to do. But, I used to be able to put a snippet of code right in the middle of my sentences. It still works with other languages, like JavaScript. I can add the var = "Jason"
right into the sentence using single backticks, even CSS works: h1 {background: blue;}
but not HTML tags. ??
Thank you though. :)

Anthony Babich
5,505 PointsHmm.. instead of figuring out exactly what you want to say because I don't know how you're trying to represent HTML tags check out this forum link..
It says to use a single tick to do inline code..
https://teamtreehouse.com/forum/how-to-type-code-in-the-forum

Douglas Counts
10,618 PointsAn <h1> tag like that?
LOL, Anthony didn't answer your question and even sent you an informative link to an article that you wrote yourself. That is just hilarious.....LOL
You can place HTML tags within text like so... <html><body><h1>This is my heading</h1></body></html>
Only the NSA won't let me tell you.... sorry.
No, what you do is use <
and >
on each side of the tag name. <h1>
gives you the <h1> tag that you are seeking.
Hope this was helpful and got a real kick out of Babich's answer to you... I hardly could stop laughing long enough to write this.
Keep up the good work moderating the forum. By the way, how does one get to become a forum moderator here?
-Doug

Anthony Babich
5,505 PointsHuh? His name isn't listed anywhere on the on the forum link I sent. I am realizing now though, he knew about the single backtick based on his response earlier. HTML tags don't seem to work in it.

Douglas Counts
10,618 PointsBabich, he wrote the lengthy answer to that very post with the steps on how to include source within forum answers but it didn't have the technique that I just included. If you read my reply to Anders, then you should also be aware that my solution does not utilize back ticks at all like you suggest.
Instead it uses what are called HTML Entities which provide a means to post code online. You can read about them at w3schools.com.
Later.....

Anthony Babich
5,505 PointsThe guy that wrote the lengthy response was named James Barnett, so no he didn't. I know of HTML Entities, but I don't think that's what he was asking about..

Jason Anders
Treehouse Moderator 145,862 PointsThank-You Everyone for your responses!
Anthony, that link you posted will be very helpful in the future, both for me and for others. I hadn't seen that post before, but there is some very useful tips-n-tricks in there. Keep Coding :)
Douglas, Thank-you so much. It's been bugging me. I'm sure the backticks worked on the HTML before, because I know I didn't use Entities, but I'm sure I've posted tags before. IDK? I guess I'll have to use <h1>ENTITIES</h1> now.
Anthony is right, though, I didn't write the answer you were referring to, but it will be a good resource in the future.
Again, Thank-You all! Keep Coding and Keep Contributing to the forum! :)

Douglas Counts
10,618 PointsAnthony is right, though, I didn't write the answer you were referring to,
[](data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAFoAjgMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAABgMEBQECBwj/xABAEAACAQMCBAMEBgYJBQAAAAABAgMABBEFEhMhMUFRYXEGIjKBFBVCkaGxI1VylMHRBzNSYoKSwvDxFkNUsrP/xAAaAQEAAgMBAAAAAAAAAAAAAAAAAgMEBQYB/8QAKBEAAgICAQMEAAcAAAAAAAAAAAIBAwQRIQUSMSJBUWETFCMycZHh/9oADAMBAAIRAxEAPwD7jRXKhluYomCs2XIzsUFmx44HPHnQ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9AVtQSSS0kjhzvkGzcDgqCcFh6Ak/Kp1RUUKoAAGAB2r1RQHMUV2igOUEZ612igK2nRvFYW0coIdIlVgT0IAzSr/AEgatFYNaLNPHAVDSRPKcAyEcNSB9oKGZmH7PjTnRQHwC602K5u4V03U9NitIIljhlueEshAJZt2731JZm7d/GrEfshot0iLrftZ9MQHPDF6mPvYn8AK+70UAu+xBh+r7sWs3HgF22yTi8TPuoT72Tnnms3+kH2cS/iXVISqTQLic8NW3xjOCcg/CST6Fu4FOlFAfONH1bS49KtEOp2YxEuA1ymQMcs8+uKufXOlfrSx/eU/nT3RQCJ9c6V+tLH95T+dH1zpX60sf3lP5090UAo+zt5a3ftAptLqCfZaS7uFIr7cvHjODy6Gm6iigP/Z)
Doh, now I feel stupid... LOL. I was confusing you with James Barnett. I was seeing the moderator icons and didn't actually read the names. There are a lot more moderators than I expected as I thought the group would be relatively small.
I'm still glad that I had a good laugh though. Laughter is always healthy.
Later guys...