Title: not rendering html correctly
Last modified: June 6, 2018

---

# not rendering html correctly

 *  Resolved [thewebdrifter](https://wordpress.org/support/users/thewebdrifter/)
 * (@thewebdrifter)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/not-rendering-html-correctly/)
 * i have a shortcode [sc name=”book_now” url=”/contact”]
 * with:
    `<a href="%%url%%" target="_blank"><div class="cust-read-more-testimonials
   booknownm-button hvr-glow-dark"></div></a></div>`
 * but it renders like this:
 *     ```
       <p style="text-align: left;"><!-- Start shortcoder --><a href="/contact" target="_blank"></a></p>
       <!-- Start shortcoder -->
       <div class="cust-read-more-testimonials booknownm-button hvr-glow-dark"></div>
       <!-- End shortcoder v4.1.7-->
       ```
   
 * basically i am just trying to have the a tag wrap the button div why is it not
   working?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnot-rendering-html-correctly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/not-rendering-html-correctly/#post-10370841)
 * This is not a issue with shortcoder. This is how HTML behaves.
 * You are trying to wrap Anchor tag ( inline element ) with DIV tag ( block element)
   
   This is not possible. An inline element can be wrapped with only with inline 
   element.
 * Please refer this answer [https://stackoverflow.com/a/11346421/306961](https://stackoverflow.com/a/11346421/306961)
 *  Thread Starter [thewebdrifter](https://wordpress.org/support/users/thewebdrifter/)
 * (@thewebdrifter)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/not-rendering-html-correctly/#post-10382993)
 * Great thank you 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘not rendering html correctly’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [thewebdrifter](https://wordpress.org/support/users/thewebdrifter/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/not-rendering-html-correctly/#post-10382993)
 * Status: resolved