Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's with everyone making up tag names and undefined namespaces nowadays? <g:plusone>? A simple <span> with a class or data attribute would suffice.


I had the same reaction. Looking into the documentation[0], it turns out that you can also use a div with data- attributes instead, like this:

<div class="g-plusone" data-size="standard" data-count="true"></div>

[0] http://code.google.com/apis/+1button/




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: