www.webdeveloper.com
Results 1 to 14 of 14

Thread: Please Review: Meta Tag Generator

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096

    Please Review: Meta Tag Generator

    Meta Tag Generator

    I was quite surprised to be able to easily get the domain:
    MetaTagGenerator.org

    So have quickly put up a meta tag generator that I made in PHP... hope you like it and find it useful...

    I've made it to include optional tags such as meta transitions with combobox select menus to make it fast & easy.

    The page is a basic WordPress CMS set for a static homepage... I've used JavaScript and PHP to build the generator and expandable definitions on the Reference page.

    Any suggestions for other meta tags you like to use?

  2. #2
    Join Date
    Aug 2006
    Posts
    1,908
    Interesting idea. It generates xhtml syntax, though it says its html. Perhaps you should have a radio box selection for one or the other?

    Dave

  3. #3
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096
    Thanks for that Dave. You are absolutely right...

    I believe that most people are gravitating towards XHTML from HTML, as it is "extended" html and thus is more flexible... besides, XHTML syntax will parse fine and is better in my book...

    Besides, I'm LAZY and to add the button to make it html might be overkill... what do you think?

    Does select="selected" vs. selected make a big difference?
    <BR> vs. <BR />

    I'll see how it goes... thanks for the tip...


    Should I mention that the syntax is exclusively xHTML?
    I think it might be useful to know...

  4. #4
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096
    Quote Originally Posted by tracknut View Post
    Interesting idea. It generates xhtml syntax, though it says its html. Perhaps you should have a radio box selection for one or the other?

    Dave
    Dave, BRO!
    Now you did it...
    I'm going to be tossing and turning all night until I make a radio button for xHTML and HTML!

    LOL

    I'll get you for this!

    </ >

  5. #5
    Join Date
    Aug 2006
    Posts
    1,908
    Quote Originally Posted by donatello View Post
    Dave, BRO!
    Now you did it...
    I'm going to be tossing and turning all night until I make a radio button for xHTML and HTML!
    Sorry!!

    Personally I get a bit annoyed when a site tells me "just include this code" and then it doesn't validate. Call it a pet peeve of mine, but that's the way I am....

    I won't even touch your assumption that folks are migrating to xhtml.

    Dave

  6. #6
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096
    Thanks for the suggestion Dave.
    I did it... check it out.


    There are now two buttons, one will generate xHTML (my preference); the other will generate plain old vanilla HTML.

    meta tag generator

  7. #7
    Join Date
    Jul 2008
    Posts
    196
    Quote Originally Posted by tracknut View Post

    I won't even touch your assumption that folks are migrating to xhtml.
    Is this true? I spent 3 baffled childish years learning HTML and now I have to learn something completely different or go obsolete?

    Anyway I thought the site was a handy idea, I used it for my site. It is also very straightforward and easy to use, even the help thingy was very brief yet explanatory. As far as how well the output works, I have no idea yet.
    Resistance is futile if < 1Ω

  8. #8
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096
    Quote Originally Posted by Not to mention View Post
    Is this true? I spent 3 baffled childish years learning HTML and now I have to learn something completely different or go obsolete?

    Anyway I thought the site was a handy idea, I used it for my site. It is also very straightforward and easy to use, even the help thingy was very brief yet explanatory. As far as how well the output works, I have no idea yet.
    Well, it's not so dire... it's only an upgrade to HTML... the main difference is that the attributes must be all lowercase, and ALL tags must be closed with a space and trailing slash including 'empty' tags such as <BR> <HR> <BASE> <META> and <img> ...

    HTML
    <BR>, <HR>, <img src="yourimage.jpg" alt="image">, <META name="keywords" CONTENT="dogs, puppies, hounds">

    XHTML
    <br />, <hr />, <img src="yourimage.jpg" alt="image" />, <meta name="keywords" content="dogs, puppies, hounds" />

    So, for the most part, if you know HTML, you mostly already know xhtml.
    Last edited by donatello; 03-15-2010 at 05:29 AM.

  9. #9
    Join Date
    Aug 2006
    Posts
    1,908
    Looks good, but your last two <link...> lines still have the terminating "/>" in them.

    Dave

  10. #10
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096
    Quote Originally Posted by tracknut View Post
    Looks good, but your last two <link...> lines still have the terminating "/>" in them.

    Dave
    Thanks Again!
    Absolutely right again!
    Fixed again!

    By default, the generator displays whatever was displayed in the field for the favicon path.

    Technically, those are not even meta-tags, but I always find myself installing the favicon code with the metatag code, so stuck it in there... I wanted those fields modifiable, as sometimes WordPress Themes have the favicon in the "Themes" directory, and this would enable users to modify the path prior to generating the code.

    So instead of creating another one, I took a shortcut and simply strip the trailing slash out of the field when it appears like this:

    PHP Code:
    echo str_replace(' />''>'$_POST['favicon']); 

  11. #11
    Join Date
    Sep 2010
    Posts
    2
    You should read some books $)

  12. #12
    Join Date
    Aug 2010
    Location
    Oxford, UK
    Posts
    3
    Easy to use, looks good, just used it myself, well done.

    Congratulations on the domain name.

  13. #13
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,096
    Yeah, I was surprised to get the domain... some guy just offered me 1500 Euros for it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles