<!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 elements with an href attribute.</p>

<button onclick="w3.hide('[href]')">Hide</button>

<h2>This is a heading</h2>

<p>This is a paragraph.</p>
<p><a href="https://www.w3schools.com/html/">This is a link</a></p>
<p><a href="https://www.w3schools.com/css/">This is also link</a></p>

</body>
</html>

Click the button to hide all elements with an href attribute.

This is a heading

This is a paragraph.

This is a link

This is also link