html api

Using the html api

Create an html image object

This is the easiest why for creating QR codes on your website. Just enter the code in your url :
<img alt="" src="http://api.qrtag.net/qrcode/[qr code size]/[border size]/[background color]/[color]/[data]" />
qr code size : the size of the code in pixels.
border size : the size of the border in pixels.
background color : the color of the background in hex format1.
color : the color of the tag in hex format, this must be darker then the background.
data : containing the data of the QR code. 

1 examples of an hex formatted color code : #000000 = Black, #FFFFFF = White.

Variations of the html image object

Some variations of the html image object :
<img alt="" src="http://api.qrtag.net/qrcode/[qr code size]/[border size]/[background color]/[color]/[data]" />
<img alt="" src="http://api.qrtag.net/qrcode/[qr code size]/[border size]/[color]/[data]" />
<img alt="" src="http://api.qrtag.net/qrcode/[qr code size]/[border size]/[data]" />
<img alt="" src="http://api.qrtag.net/qrcode/[qr code size]/[data]" />
<img alt="" src="http://api.qrtag.net/qrcode/[data]" />

More Examples?

Check out the demo page!

Standaard function

Discription :

This example shows you how to use the QRtag api with an image object

Source :

<img src="http://api.qrtag.net/qrcode/380/20/http://www.qrtag.net">
<img src="http://api.qrtag.net/qrcode/240/url">
<img src="http://api.qrtag.net/qrcode/Standard QR code!">

Result :





Note :

When using a border the actual size of this QR code is size + 2 x border size. So if you want an QR code of 200px with a border of 10px you enter 180px for the code and 10px as border. If you want the QR code containing your current url use url as the data variable.

Color code

Discription :

This example shows you how to use colors in your QRtag

Source :

<img src="http://api.qrtag.net/qrcode/380/20/ff0000/Red Devil!">
<img src="http://api.qrtag.net/qrcode/240/20/000066/3333ff/Blue Oceans">
<img src="http://api.qrtag.net/qrcode/160/10/000000/ffff00/Beeezzzzzzzzz">

Result :






Note :

When using colors keep a high contrast for better mobile reading.