HTML Meta Tag Generator

Introduction

Because of how often I need to generate Meta Tags for my web pages, and how difficult it is to remember all meta attributes (description, author... etc) I decided to write an application (small one) to do this job for me every time I need (create a new page for my sites).

This set of meta tags is not complete, a meta tag can have many different attributes, but this program i created is only for the ones i use most often(for full list of attributes: ask Google!)

I will generate the tags with only these attributes:title, description, keywords, author, distribution and revisit

Let's start to create an Object - MetaTagObj to store all the information we need inside.
The code for MetaTagObj class is:

In this class I do all the work for Meta tag creation (also, I include the TITLE tag here). This class is simple, two constructors, one with parameters, one empty. Some properties for private variables, with some default values (some of them).

The main form contains (screen capture on top of page) few TextBoxes, where the user can introduce data (values for specific attribute.), 3 buttons (Generate, Copy to Clipboard and About) and a TextBox (ReadOnly) for generated code!

.
To use this program, you need to fill all the textboxes you want and to press the Generate Button. After this just Copy/Paste the code inside your HTML doc, on HEAD section.

Enjoy!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.