Joseph knows the source of the HTML content is safe and wants to render the proper HTML content on the browser. 
 

JavaScript Code:

      const { createApp } = Vue
        const app = createApp({
           data() {
              return {
                 GoogleSearch: '<a href="http://google.com">Google</a>'
              }
           }
      }).mount('#app')

What is the right syntax to be written in html template to get the output as  Google on browsers?

<p> {{GoogleSearch}} </p>
<p> GoogleSearch </p>
<p v-link='GoogleSearch'></p>
<p v-html='GoogleSearch'></p>
Verified Answer
Correct Option - d

To get all Infosys Certified VueJS Professional Exam questions Join Telegram Group https://bit.ly/infy_premium_group

Telegram

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Sun, 6 Jul 2025