<!DOCTYPE html>
<html>
<script src="http://www.sargonco.com/Uploads/Public/article/webdistut/javascript/angular.min.js"></script>

<div w3-test-directive></div>

<div class="w3-test-directive"></div> <script> var app = angular.module("myApp", []); app.directive("w3TestDirective", function() {     return {         restrict : "C",         template : "<h1>Made by a directive!</h1>"     }; }); </script>

</body>
</html>