How to Code a Basic Website – Refactoring HTML, CSS, and JavaScript [Part 9]

by | Jul 4, 2021 | 0 comments

How to Code a Basic Website – Refactoring HTML, CSS, and JavaScript [Part 9]

by | Jul 4, 2021 | CSS Tips and Tricks | 0 comments



In this ninth tutorial video for how to code a basic website, we learn how to refactor our code.

We cover how to make a website load more efficiently in a browser and clean up our code while producing the same result for our visitors. Also, we’ll learn how to use JavaScript to pull in different pieces of our website to avoid duplicating our HTML and CSS code in multiple locations.

Project Files – https://tutmo.com/resources/

source

[newsletter_form]
<div class="tnp tnp-subscription"> <form method="post" action="https://www.dienodigital.com/?na=s"> <input type="hidden" name="nlang" value=""><div class="tnp-field tnp-field-firstname"><label for="tnp-1">First name or full name</label> <input class="tnp-name" type="text" name="nn" id="tnp-1" value=""></div> <div class="tnp-field tnp-field-email"><label for="tnp-2">Email</label> <input class="tnp-email" type="email" name="ne" id="tnp-2" value="" required></div> <div class="tnp-field tnp-field-button"><input class="tnp-submit" type="submit" value="Subscribe" > </div> </form> </div>