How do you add and remove ‘hidden’ from <p hidden>My Text</p>? I tried removing the attribute and setting it to false but neither of them worked. Answer It looks fine here. Try with this code if you wish. index.html script You can see in codePen https://codepen.io/anon/pen/qozVaq