<!DOCTYPE html>
<html>
<title>W3.JS</title>
<script src="/Uploads/Public/article/webdistut/javascript/w3.js"></script>
<body>

<p>Click the button to hide all p elements with class="intro".</p>

<button onclick="w3.hide('p.intro')">Hide</button>

<h2 class="intro">This is a heading with class="intro"</h2>

<p class="intro">This is a paragraph with class="intro".</p>
<p class="intro">This is also a paragraph with class="intro".</p>
<p>This is another paragraph.</p>

</body>
</html>

Click the button to hide all p elements with class="intro".

This is a heading with class="intro"

This is a paragraph with class="intro".

This is also a paragraph with class="intro".

This is another paragraph.