How do I format code in my posts?


Codecademy Discuss posts are parsed with Markdown. Markdown allows for easy formatting of code and text, and strips HTML out of posts by default to prevent security risks. This will show you how to format your code so it shows up.


To format code so it's visible, either wrap it in single backticks (`) for a small amount of code, or triple backticks on an otherwise blank line before and after for a large amount of code.


Inline code

To indicate a small span of code, wrap it in backticks (`). For example:

How do I use the `console.log()` function?

would produce:

How do I use the console.log() function?

Code Blocks

To indicate a code block, either wrap the entire block in three backticks:

<!DOCTYPE html>
    <!-- metadata and external resources-->
    <!-- page content -->

Or, (2) you can indent the code with four (4) spaces:

    <!DOCTYPE html>
        <!-- metadata and external resources-->
        <!-- page content -->

The first produces:

<!DOCTYPE html>
    <!-- metadata and external resources-->
    <!-- page content -->

The second produces:

<!DOCTYPE html>
    <!-- metadata and external resources-->
    <!-- page content -->

For more information on Markdown Formatting, visit

11. Adding images. What is going on?
What's the problem wit this code?
I don't get what I'm doing wrong part 2
Adding image problem
Modifying member variables gives an odd error
My image tag is not showing up?
I need Help
19/19 Stuck
HTML Basics ll 11/16 I don't get the Error: Oops, try again. Did you remember to set the font-family to Arial?
Python tutorial help
Python tutorial help
Create a JSX <article></article> element. Save it in a variable named myArticle
Lesson 5/13
Meal Maker Mess Ups
Help with these while loops and for loops
How do I modify console with a parameter in place?
Remove_duplicates practice makes perfect 14/15
Problem with exercise - Nested Elements
Review: Functions
Please help me correct the error in my code. I keep on getting "uncaught syntaxerror: illegal return statement
Lesson 1. where can i know "my name"?
Python Censor Activity
Could someone please tell me what is wrong with my code?
Part of Code
Loop incremental
Initializing a class
Help with 4/7
19. review: built-in functions
15. Iterating over a list in a function
Last part- how is everybody doing
Built in functions (19)- stuck
From .... import .... syntax error
Check yourself
How to center a nav bar
Test Run
Stocking out: Is this correct?
Could somebody tell me what is wrong with code?
Html and css nav bar
Inheritane syntax
Python | Command Line Calendar. Indentation Error
Why is 'gold' wrong please help. Says syntax error
They're Multiplying!
They're Multiplying!
8. What if choice1 is scissors?
Student Becomes The Teacher 9/9 - Please Assist
Python trial #1 - fails after input
Scrabble score:
Indentation error:
Code not working plz help
What is wrong in this code?
19. Review: Built-In Functions Pls Help!
Functions & if / else
Why got this error
Stuck on CSS overview exercise 23
14/18 Passing a range into a function
Answer to 9/9
List manipulation in functions: Help please
Code your own adventure. Part #5
Python Password Generator
Can anyone tell me what im doing wrong with <p></p> it keeps telling me no empty p tags
Return statement throwing error
Need help with linking at will
"Ending Up" help
8. modifying member variables still stuck on this class stuff?
Taking a vacation pulling it together
Pyg Latin 1
Can't continue
I have a problem with setting the text-decoration to none
Guys help im really stuck with html and css part 1 lesson 3 6/6
Learn HTML & CSS Part 1, Step 1
Rock, paper scissors
Html and css understanding
Python if/elif/else
15, Play it Sam
Yoohoo! can anyone help me! something is wrong with my code!
What's wrong?
Pulling it Together
6. is_prime
Whats wrong with my code?
7. You deserved It
What's wrong witht his code?
8. naming your table
CSS: An Overview Many Selectors, Many Properties
CSS: An Overview Many Selectors, Many Properties
Stuck on Lesson 26 "CSS: An Overview"
Help w/ Practice makes perfect 6/15
Code not getting submitted
HTML & CSS Social Networking Profile- 5. Lists within lists
1. We've come a long, long
5 Link it up
Need help please with ending up
Adding images
23. Pseudo Selectors (again...)
Need help with Social Networking Profile
Calendar project
Part of the Whole Error
Unexpected indent, help needed
6. solo flight
Game over help
Game over help
Div styles
I pass but when I click on the images they don't do anything lesson 13
To show an image
How to copy 4and paste the code
Lets take a vacation: your
8. word up stuck
[solved]Review functions
Practise makes perfect
IndentationError: unexpected indent
12. Stocking Out, need help
I don't know what is wrong
19 math javascript
Transportation problem
Functions, what is it really used for and am stuck
Step 6: I am having problem with my code, please assist. Thankyou
16 Using Strings in lists in functions
An exception was raised for fizz_count
11. Making a Purchase
Help on "hey, you never know"
Does your code take one argument?
Cannot return Steve
I'm getting the right results but console giving me error
Own python project issues!
[Python]Student Becomes the Teacher 8. Part of the Whole
18. Using a list of lists in a function
[Python]Student Becomes the Teacher 8. Part of the Whole
12. Printing out a list item by item in a function "list index out of range"
It doesn't work i dont know why
Lesson 10 confusion with the href
Is list declaration necessary?
Site not letting me move on even though code is correct -- and where do I post my question?!?
1/14 Create New Variable
Stuck on "Build rock, paper, scissors"
#17: review function
Bad aim
Why doesn't the cost show up in the console?
Need help in project
Sending a letter
Lesson Number One
Having problem at level 10 font family
I can't add image to .html file in TextEdit on my computer
8.Part of the Whole
23. Pseudo Selectors
7. Search for a Friend - Don't understand
What does it mean if I get the error code 'Invalid left-hand side in assignment'
Can't pass adding image lesson 11
<!DOCTYPE> Still Doesn't Work
Wont let me succeed 13. Images and links
<!DOCTYPE> Still Doesn't Work
Making a purchase
Html and css, Sorting your friends. Says pass but result not satisfactory
Just says oops try again. can I have some help please?
Need help in excercise 3rd
Stuck on 25
Javascript conclusion pt 2 trouble
Help on taking a vacation 3
CSS Overview Assignment - Glitch?
4. Listing everybody
It's Better with a header
Question 13 (IMAGE AND LINKS
I got to step 5 and when i try to submit my answer the page stops responding
#1 String Functions, Part 1
Since 11/13 I lost Run function
Stuck- id's
Can you help me generlation exercize 5
Previous slide 2 - cannot get past, please help!
Image and Links Help Please
Background Color
Adding <em> and font-size and font-family
What did i do wrong in my CSS?
CSS Borders
'background: limegreen'
Empty p tags
Did you change the value of title to your own String?
10 - Censor / 15. Practice Makes Perfect
What am I missing?
8. Part of the Whole
Functions, Part I: Functions Explained
Background color
Something of Value (10 - 9) Confused with output
What if choice1 is scissors?
Im realy stuck! it says i havnt put in my <!DOCTYPE> what do i do!
Cannot pass lesson 2!
Implement into own code
Clickable Photo Page course: Unable to display images
Jquery 4 Moving element Around
15. The Big If
6.5 Error: “Did you add the link to the destination?”
Could someone help me with the font size lesson? (exercise 8)
Can someone please show me how to nest the tags to change the font size?
Adding images to your website
"Review: Built-In Functions"
How is everybody doing! Moderators Help pLease!
23.Pseudo selectors. whats wrong?
Starting my portfolio with a resume made with my HTML and CSS knowledge
Text-Alignment in Ordered/Unordered Lists
6. Just Weight and See
Sending a Letter problem
Why does it tell me I'm not setting the div's opacity to 1?
Codeacademy Python 4/11 MadLibs
Hi all (TRY TO UNLOCK my 4 digits code)
Oops, try again. Did you remember to change the first <li> to the font Arial?
In while loop syntax it is not working correctly i am not get third stage of while loop
No me acepta el font-family necesito ayuda
Why doesn't this code work if x = 9?
12 Stocking out
8. Part of Whole
Printing numLegs of emperor
13. Not Again
Image tag
Dynamic Time Warping from Excel Workbooks
The Big If
6.Just Weight and See
I can't figure out exercise 5 step 1
5. What am i doing wrong?
Whats wrong with my code?
Whats wrong with my code?
Code wont work on sublime text
7.What if choice1 is paper?
Feedback... Again (Sorry)
Rails authentication - step 11/12
Need help #10-previous dot 1
Please help! I am having a problem with font size at this particular screen
Logo and Nav in one line
8. What if choice1 is scissors? SyntaxError: Unexpected token else
Lesson 15 - Oops, try again. Make sure you put some text between your <a></a> tags!
I don't get what i'm doing wrong on 8.Work Your Body
Oops!try again your function returns true for 3
"Practice Makes Perfect"
Why do I need tags?
Oops, try again. Does your code print "empty" when len(original) is 0?
7.reverse help
The history heats up!--Cant find error
6. Just weight and see
11/18 list manipulations in functions
My earth position won't work
Stuck at exercise "4.Transportation". Code seems correct
Plan Your Trip
6. is_prime
Java Methods II error
What is wrong with my code for 12. Or
Intro to Functions, Lesson 4 - right and wrong at the same time
Exercise 8
What is the problem with for loop?
25. stuck
Where to place <table> tags?
Hey having a problem with the introductory course 8/12
Need code for all 3 ideas in 9)Next Steps of Build "rock,paper and scissors"
Need help on booleans on javascript
Your second 'for' loop isn't pushing values to the hits array
Build a resume!
LESSON 25 size and borders , 26 links and text decoration
Python Date and Time Grand Finale
General question re using jing in forum
The Do's and Don'ts of Codecademy
3. Adding some story + TypeError: console.log is not a function
Exercise 6, why does it tell me to make sure I'm adding the "active" class on hover?
30.What are objects for?
How to loop Pig Latin Translator, when incorrect input entered?
FAQ & Trouble shooting [JavaScript]
Singup 1 part 4
I don't understand "add a new line below your code to move your p tag after the div with id #one"
How Is Everybody Doing?
Formatting a topic
AngularJS Instructions Step 4
Need help on "Previous Slide 1" (ex. 8)
Search for a freind
Final Product
3- inline-block (CSS Positioning)
Part of the Whole and Error: Make sure you define get_class_average
Adding image problem
Please correct my code
CodeAcademy - Ruby - Putting the Form In The Formatter - Repeat for more input
HTML video element 8/13
Build a Calculator! -- Make sure the button has the exact id 'button'
Exercice pierre, feuille, ciseaux
11...The picture showed up on the right...why can't I proceed?
Background image of the .main
What's wrong here?
Introduction HTML III basics
17 review functions codecademy
Changing font family
I'm having trouble with the adding images exercise
Keep getting Unexpected token error
q3 on section 2 html basics
18. need help
Lesson 3
Oops, try again. Did you give your third paragraph a font-size of 26px? It looks like it's currently undefined
23 Many selectors, many properties
What's wrong with console.log?
10.Ending Up
Oops, try again. Add a <div class="col-md-4">..</div> in the <div class="row">..</div>
Lesson 15.Links
Own Code 13/13 please check what I did wrong?
10. font family
Build your own webpage #2
HTML Basic 2 chapter 8
Unable to add space on top of my footer
CSS: un vistazo general ¡Enlazalo!
Problema en selectores de CSS capitulo 8
5/7 Second For isn't Pushing Values to the Array
Hello there!
Oops, try again. Set the body's "background-size" to "cover"
8: One Selector, Many Properties. Error with Garamond font
How do I fix the code? It is not specific!
12. ID please CSS Selectors
Exercise 5. I can't find the mistake, can someone help me? D:
Hello there!
Hello there!
HTML II Basics: Font color Why isn't my header green?
15.15 Median
If,else and elseif - ARGH why doesn't my code work?
Stylizing heading and font-family colour
"Your second <li's> font is 16px instead of 12px"
#3 one sector to rule them all
Lesson 26
FONT FAMILY I need help?
Html / css questão 16
26. Links and Text Decoration
And or Or
Need help!
Looks like font size is 32 not 16. What am I missing?
Stuck on 13. Make sure at least one of your images is also a link
Transportation Issue
Oops, try again. Make sure your <span> tags only contains 'Impact' and nothing else!
Build a resume!
Code is not working
Not sure what I am doing wrong? (Link me)
Parse error: syntax error, unexpected T_ELSE on line 15
Don't understand what is wrong with my code?
Exercise 7 where do I add the quotes
'Div'ide and Conquer
HTML/CSS lesson 9: is there a bug?
Why is this code wrong
How do you pass the font-size and family code?
10.Ending Up
Exercise 4/6
Whats is wrong in my code?
17. Remove Default Styles
Lesson 10 ending up
7. What if choice 1 is paper? - Unexpected token else
17. Remove Default Styles
Is prime
Exercice 7 tableau html debutant
Adding Images. The code won't submit even after putting space between .jpg and />
6.5 "Did you add the link to the destination?"
Question about 8. Design a Button for your Website
9. font-color
Totally Lost on While Loops Variables
Font Size
9. font-color
Error message incorrect?
I don't see the problem with desing a button
I can not see what is wrong
Code puzzle
Lesson 8 front size
Lesson one on building a website
Confusion on The Second For Loop
Why doesnt this website work
Help cannot get passed font size!
HELP! 8 Font color
HELP! 8 Font color
Link it up
14 Span is the Man
Is prime
CSS Selectors: Show it if you know it
Why is this code not working? (ep. 8 related but my changes are the problem)
Need help with exercise 2
Impossible. Building with bootstrap>part six>step 2
3. One selector to rule them all
The issue is the same: here is the code
What's wrong with this code?
HTML&CSS Basics UNIT 1- Less. 1, #11 Less.2, #2 WILL NOT accept correct answer
Oups, merci de réessayer. Avez-vous bien attribué la police Courier à l'id #serieux?
3 Your first "for" loop, I'm receving an error I have not seen before and don't know what to do
CSS A font of knowledge
What is wrong with this code, I keep getting a message saying <li>'s font-size is 16px instead of 12px
Nothing is showing up in my preview box
19. Create your own code. What is wrong?
Can't save and send the code - unit 4
Uncaught ReferenceError: $ is not defined
Need Help on Lesson 13 "Putting it all Together"
"It's better with a header" Stuck
Nothing is showing up in my preview box
2 Nav!
Add font family for the property selector hero
[solved]Ending Up help!?
Taking a vacation getting there
4/7 Stuck
4/7 Stuck
4/7 Stuck
6: No ID, no entry
6: No ID, no entry
Class selectors
párrafo es 16px en vez de 44px
Validation not possible
PHP server not responding in lesson 11 (portuguese vesion)
Balise paragraphe
Balise paragraphe
Review/23 Pseudo selectors isn't working
Practice makes perfect
11. Adding images. What is going on?
Help! I changed fon to Arial but the lesson won't recognize
Trying to figure out how to make code in this QA look correctly formatted
#2 Taking up Space display: block; bug?
Image et lien
Nav section
Image et lien
Image et lien
Third link is not hovering?
Problem with 26 links and decoration exercise
11.adding image
11.adding image
HTLM basic II 8 Front Size
The o Shortcut
What am i doing wrong
23 psuedo selector
5.Link it up oops did you remember to link your....why won't it let me continue
Check yourself won't work
[solved]12. background color
6. What if choice one is rock? I cant get my code to work, help?
A Day at the Supermarket 12 & 13 (lets me pass but prints nothing!)
4.Check Yourself! here are some mistakes
My code doesn't work on exercise 5
Modifying html element
Lesson 5 A picture is worth a thousand words
Adding images
[FAQ] Common Problems #Read Me
Adding js and jquerry to a file
Build a resume: overlapping header
Previous dot 2
Problems with 4/6.redacted
What is the HTML Tag Really?
Making a Surface Area and Volume calculator
Code correct but same error mssg wont go away - help!
10 You win
HTML Basics II 8 (Font Size) 'It looks like 16px'
Check yourself!
17/19 A Real Win
Code not working on a real server
What if Choice 1 is scissors? Having some trouble
Can someone spot the errors in my code? :)
Question 8
Syntax Problems | Number 12
Syntax Error?
8. What if choice1 is scissors? PROMPT ERROR?!?
Little doubt
15/15 median
Search Text Your Name .! Not getting hits
Syntax error: unexpected token else
Calling the function --
5. logical operators - ERROR
I need help with #12 on java!
Code not working
I'm confused
2.Old enough to play
4/7 If statement
Problems with My Constructor Function
Question on lesson 11. Function recap
Introduction to while loops in JS 10/11
Help with addition of variables
Iterating over a list in a function interesting error
14. The color will not show up
Wont let me pass
The Big If
2.cant find the problem
Don't work?
More on Control Flow in Javascript
17/19 A REAL WIN- please help
Font size color. error mesage did you change your heading to green?
HTML Basics lll 9. Styles that Head error
Background color is changed but it still gives the error
Isn't there a mistake in the Code Acadamy example in the Link 'em up page?
Here is my code:
Show a tag 5/9
11/13 code wrong?!
<p> tags
Blank space in The Innovation Cloud Project
MOVE (supporting - how to get text to go inline)
It can't see my <!doctype> tag
PLS help with my simple asssignment, a guessing game in python
PLS help with my simple asssignment, a guessing game in python
SleepDebt Calculator/ JavaScript functions
Review: Built in functions
URGENT HELP on calculator code pyhton
Part of the Whole 8/9 with formatting
Problem with whitespace lesson? wont let me advance
Html question over here
List manipulation in functions (11/18)

Whats wrong in this?
Final Errors
I am facing difficulties to go ahead coding
Start from scratch?