Barcode Code 128




This is a text-barcode


You can add barcodes in the markup, by adding the barcode class to an HTML element, containing the barcode text. Use barcode2 for double size. To specify which subtype to use, specify a second class: code128a, code128b or code128c.

View source for the markup. No images, no server-side stuff. Just HTML, Javascript and CSS.

The barcodes have been tested with and

Test yourself


Known issues

This blog made some improvements, I hopefuly incorporate in my code (thanks to Zachary Zebrowski for bringing this to my attention).

Version history

Usages on the Web