Formatting text in Drupal 7 not working
You need to set the text format as Full HTML, text format select list will available below the body text area.

If the text format is specified as Plain text, then it will remove the html tags.

You can find out more information and best practices here - Specifying the allowed formats for user input