Pin Me

Collection of Free HTML Code Snippets You Can Copy and Paste

written by: Sheila Robinson•edited by: Michele McDonough•updated: 9/13/2011

HTML is the basic computer tagging language that is needed to create a website. There are numerous tags that can be used to help web designer’s create visual appeal and features. The listed links provide free HTML codes that can be easily applied to a web page.

  • slide 1 of 2

    Designing a website can be an interesting and fun challenge. HTML gives you a lot of creative choices. It doesn't matter if you are a beginner learning the basics or a pro looking to expand your knowledge with more advanced features. Here at Bright Hub, we want to make obtaining the information you need an easy and helpful experience. Use our list of code snippets as a resource to help you with your website projects.

    HTML has a lot of possibilities. Are you a newbie looking to find out how to add basic features like formatting text or adding links? These HTML tags are fairly easy to learn and apply. Looking to add more pizzazz to your web pages? How about code snippets to add music, create rollover effects or a nifty calendar? For those that have more experience, you may be interested in how to add more advanced features that can help with password security, creating slideshows or forms.

  • slide 2 of 2

    HTML Code for Adding a Link

    Links are one of the most common features you will see on a website. Want to know how to add website links to your web pages? These simple HTML tags will give you just what you need.

    Linking to a Folder with HTML

    A website can be filled with information that is sometimes located in several directories and folders. To make it easier on the web user, special links can be created. Use these free HTML codes and your web page navigation experience will be a delight.

    Advanced Formatting in HTML

    Are you a newbie web designer looking for new ways to format your text on your web page? Get beyond the basics. Benefit from these HTML tags to make lists, display images and create internal hyperlinks.

    Wrapping Text with HTML Tags

    When it comes to websites, visual presentation is everything. Without the use of HTML tags, text on a web page would look jumbled up and harder to read. Wrap your text with these code snippets to help give your page a more professional look.

    How to Create a Calendar in HTML

    A calendar can be a nice feature to have on a web page to help keep track of upcoming events and activities in your personal or professional life. Don't know where to start? Whether you are a newbie or more advanced designer, these free HTML codes can help add this feature to your page.

    HTML Code for a Website Hit Counter

    Website hit counters are used to keep track of how many visitors have clicked on to your page. They are created with a combination of HTML code and a server side language like ASP. It can be shown as a small box with the current number of viewed displayed. This code snippet will teach you how to create a visual presentation of the hit counter.

    Creating a Photo Slide Show in HTML

    Do you like the idea of adding a photo slide show to your web page? This can be a nice feature to have. Grab this code and see for yourself!

    How to Mask a Password Text Field in HTML

    Masking a password text field is a security feature that can be useful to protect unwanted viewers from seeing a user's login information. Not sure how to do it? Use this free HTML code snippet and you are one step closer to creating a safer login experience for your web page users.

    Using HTML Code to Redirect a Web Page

    A "redirect" may be needed if you decide to move your website or web pages around to a new location. Adding this feature will help prevent losing potential visitors to your website who may be unfamiliar with a change in the website address. Scoop up this HTML code and see for yourself.

    Adding a Captcha to an HTML Contact Page

    Captcha is a security feature that can be added to a web page which prevents computer generated "autobots" from attempting to login to your page. Captcha generates a random text that the human user must type manually into an entry field. It is created with a combination of HTML coding, and an image generation script which will be run off a server. This code snippet creates the entry field needed for captcha to work.

    How to Build forms in HTML

    Forms are added to web pages to capture information from your web visitors.This can be anything from mailing lists, memberships to survey data, Forms are used in conjunction with a web server where the data is stored. The code snippets contained here can help you create your own customized form to suit your needs.

    iFrame HTML Code Tutorial

    iFrames are a useful feature that will allow you to pull in external web pages from different sources and display them on your website. The pages that are accessed by using the iFrame will fit into your website without changing your page's layout. They can be useful if you want to provide additional resources to your visitors without creating links that will take them away from your website. Check out this guide for more details.

    Adding Music with HTML Codes

    Adding music to your website can be a nice feature to add a more interactive experience for your web visitors. Music can be directly embedded into your page or a played from a Flash MP3 player. Want to know how to do it? Click on the link and take a look.

    Easy HTML Code to Create Rollover Effects

    Rollover effects are a dynamic feature used in HTML to create interesting visual effects to text on a web page. Examples of this are making text appear in a different color, increase the size of the text or even create a glowing effect. The HTML codes here can be used as a foundation to create rollover effects to your page.

References