take input in javascript for code code example
Example: How to Manage Text Input and Output with JavaScript for HTML5 and CSS3 Programming
<h2 class="main-heading">Subscribe to our Newsletter</h2>
<h2 class="main-heading">Subscribe to our Newsletter</h2>