Get started

Get the tools and building blocks to design and develop consistent and accessible experiences.

Develop Design

Vehicle Identification Number (VIN)

How to ask users for their Vehicle Identification Number (VIN).

Guidance

When we ask users for their Vehicle Identification Number (VIN), we want to tell them up front where to find it. For users that need more help, we provide more information in a field label modal.


Vehicle Identification Number (VIN)

Your VIN has 17 characters and can be found on your vehicle registration

HTML

<label for="vehicle-identification-number">Vehicle Identification Number (VIN)</label>
<div class="gnb-form-helper-text">
	Your VIN has 17 characters and can be found on your <a tabindex="0" data-target="modal-vin" aria-haspopup="dialog" aria-controls="modal-vin" class="modal-button info">vehicle registration</a>
</div>
<input type="text" name="vehicle-identification-number" id="vehicle-identification-number" class="gnb-field-md" maxlength="17" />

<!-- Contextual help modal dialog - place this OUTSIDE any <form> element in your page -->
<div class="gnb-modal" id="modal-vin" role="dialog" aria-modal="true" aria-labelledby="modal-title-address" aria-describedby="modal-description-address">
	<dialog>
		<button class="gnb-btn-close close-modal-button" data-target="modal-vin"><span class="sr-only">Close modal window</span><i class="fa-solid fa-xmark"></i></button>
		<div class="gnb-modal-header">
			<h2 id="modal-title-address">Vehicle Identification Number (VIN)</h2>
		</div>
		<div class="gnb-modal-body" id="modal-description-address">
			<p>
				A Vehicle Identification Number (VIN) is a unique 17-character code assigned to every vehicle.
			</p>
			<p>
				<strong>Note:</strong> VINs never use the letters <strong>O</strong>, <strong>I</strong>, or <strong>Q</strong> to avoid confusion with numbers.
			</p>
			<p>
				Where to find your VIN:
			</p>

			<ul>
				<li>On your vehicle registration</li>
				<li>On a sticker or plate inside your vehicle</li>
				<li>On your insurance card or policy documents</li>
			</ul>		
		</div>
	</dialog>
</div>

<!-- Add this at the bottom of your page before the closing body tag -->
<script src="gnb-modals-1.0.0.js"></script>

Partial VIN

First 6 characters only. Your VIN can be found on your vehicle registration

HTML

<label for="partial-vehicle-identification-number">Vehicle Identification Number (VIN)</label>
<div class="gnb-form-helper-text">
	First 6 characters of your VIN, it can be found on your
	<a tabindex="0" data-target="modal-vin-partial" aria-haspopup="dialog" aria-controls="modal-vin-partial" class="modal-button info">vehicle registration</a>
</div>

<input type="text" name="vehicle-identification-number" id="vehicle-identification-number" class="gnb-field-sm" maxlength="6" />

<!-- Contextual help modal dialog - place this OUTSIDE any <form> element in your page -->
<div class="gnb-modal" id="modal-vin-partial" role="dialog" aria-modal="true"
	aria-labelledby="modal-title-vin-partial" aria-describedby="modal-description-vin-partial">
	<dialog>
		<button class="gnb-btn-close close-modal-button" data-target="modal-vin-partial"><span
				class="sr-only">Close modal window</span><i class="fa-solid fa-xmark"></i></button>
		<div class="gnb-modal-header">
			<h2 id="modal-title-vin-partial">Vehicle Identification Number (VIN)</h2>
		</div>
		<div class="gnb-modal-body" id="modal-description-vin-partial">
			<p>
				A Vehicle Identification Number (VIN) is a unique 17-character code assigned to every vehicle.
			</p>
			<p>
				<strong>Note:</strong> VINs never use the letters <strong>O</strong>, <strong>I</strong>, or <strong>Q</strong> to avoid confusion with numbers.
			</p>
			<p>
				Where to find your VIN:
			</p>
			
			<ul>
				<li>On your vehicle registration</li>
				<li>On a sticker or plate inside your vehicle</li>
				<li>On your insurance card or policy documents</li>
			</ul>		
		</div>
	</dialog>
</div>

<!-- Add this at the bottom of your page before the closing body tag -->
<script src="gnb-modals-1.0.0.js"></script>