# codetype attribute

Type: | code-39", "code-39 checksum", "code-128", "code-25", "code-25 checksum", "code-39x", "code-39x checksum", "codabar, "ean-13", "upc-a", "code-25 deutschenpost", "maxicode", "pdf417", "qrcode", "datamatrix", "intelligentmail", "aztec"
Inherited: | no
Used By: | barcode
Default: | none
See: | bar-ratio showtext value

Determine which bar code format to use. Valid values are:

code-39 | Use the "Code 3 of 9" barcode
code-39 checksum | Use the "Code 3 of 9" barcode with a checkdigit
code-39x | Use the "Extended Code 3 of 9" barcode
code-39x checksum | Use the "Extended Code 3 of 9" barcode with a checkdigit
code-25 | Use the "Interleaved code 2 of 5" barcode
code-25 checksum | Use the "Interleaved code 2 of 5" barcode with a checkdigit
code-128 | Use the "Code 128" barcode
codabar | Use the "Codabar" barcode
ean-13 | Use the "EAN-13" barcode
upc-a | Use the "UPC-A" barcode
postnet | Use the "PostNet" barcode
rm4scc | Use the "Royal Mail 4-state Customer Code" barcode
intelligentmail | Use the "IntelligentMail" barcode
code-25 deutschenpost | Use the Deutschen Post "Identcode" or "Leitcode" barcode
maxicode | Use the "MaxiCode" 2-dimensional symbol
pdf417 | Use the "PDF-417" stacked symbol
qrcode | Use the "QR-Code" 2-dimensional symbol
datamatrix | Use the "Data Matrix" 2-dimensional symbol
aztec | Use the "Aztec Code" 2-dimensional symbol

(Note spaces and hyphens are optional in the above names). Each algorithm has various restrictions on what can be displayed (for example, UPC-A must be 11 or 12 digits long). An error will be thrown if these restrictions are not adhered to.

    <barcode codetype="code128" value="my value here"/>