0% found this document useful (0 votes)
107 views1 page

Question - TestDome

The document describes a page with an anchor element and paragraph below it. Clicking the anchor should toggle the visibility of the paragraph with the following logic: initially hidden, visible after first click, hidden again after second click. The task is to add missing attributes to the anchor and paragraph to implement this toggle logic.

Uploaded by

SettiNagaraju
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views1 page

Question - TestDome

The document describes a page with an anchor element and paragraph below it. Clicking the anchor should toggle the visibility of the paragraph with the following logic: initially hidden, visible after first click, hidden again after second click. The task is to add missing attributes to the anchor and paragraph to implement this toggle logic.

Uploaded by

SettiNagaraju
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

5/7/2020 Question | TestDome

Question 1 of 2 Report an issue   HTML5, CSS3, Vue v2    Copy to IDE    Show starting code 

1 <!DOCTYPE html>
Page contains an anchor element and a paragraph
below it. The paragraph's visibility should be toggled 2 ▾ <html>
by clicking on an anchor element with the following
logic: 3 ▾ <head>

● At start, paragraph should not be visible 4 ▾ < tle>Toggle Message</ tle>


● After a click, paragraph should be visible
5 <script src="h ps://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
● After another click, paragraph should not be
visible again 6 </head>

7 ▾ <body>
Implement the following logic by adding missing
attributes to anchor and paragraph elements. 8 ▾ <div id="app">

9▾ <!-- Add missing a ributes to a and p elements -->

You can run the code multiple


Run times.

Output Tests: 0 pass / 3 fail

Run OK, but 3 out of 3 test cases fail:


  At start, paragraph should not be visible: Wrong answer 
Question time   After a click, paragraph should be visible: Wrong answer 
Submit & next
remaining: 7min ()
  After a second click, paragraph should not be visible again: Wrong answer

https://www.testdome.com/t?backUrlSkill=525 1/1

You might also like