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

CSS

Copying HTLM or CSS into this forum?

In a previous post I tried to copy some HTML and CSS and post it but when I hit the 'start discussion' button, it all came out as one big lump of wording so you could not really tell where the problem was. How do you copy HTML or CSS into this forum so it is readable?

3 Answers

Yep found it, again, thanks ever so much :)

Hi Andrew,

If you're pasting html you can do the following:

``` html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

</body>
</html>
```

If you're pasting css you can do the following:

``` css
body {
background: blue;
color: white;
}
```

NOTE: There's a space after the back tics and before the (html/css) text. You would need to remove this in order for it to be formatted properly. To follow is the same code (just without the space between the back tics and the text.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

</body>
</html>
body {
background: blue;
color: white;
}

Hi Brandon, thanks ever so much for responding. At the risk of sounding a bit thick (still very much a newbie), where do I find those three dots (or back tics as you call them)? Cheers

On my computers they are right below the escape key. The back tic shares the same button as the tilde (~).