购物网站结算页面布局
<h3>购物网站结算页面布局</h3>
<p>存在表单验证bug
代码来自 <code>https://getbootstrap.com/docs/5.3/examples/checkout/</code>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=7f5b322f574971ada36fc4635c6a832d&amp;file=file.png" alt="" /></p>
<pre><code>&lt;html lang=&quot;en&quot; data-bs-theme=&quot;light&quot;&gt;&lt;head&gt;&lt;script src=&quot;https://getbootstrap.com/docs/5.3/assets/js/color-modes.js&quot;&gt;&lt;/script&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;meta name=&quot;description&quot; content=&quot;&quot;&gt;
&lt;meta name=&quot;author&quot; content=&quot;Mark Otto, Jacob Thornton, and Bootstrap contributors&quot;&gt;
&lt;meta name=&quot;generator&quot; content=&quot;Hugo 0.122.0&quot;&gt;
&lt;title&gt;Checkout example · Bootstrap v5.3&lt;/title&gt;
&lt;link rel=&quot;canonical&quot; href=&quot;https://getbootstrap.com/docs/5.3/examples/checkout/&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@docsearch/css@3&quot;&gt;
&lt;link href=&quot;https://getbootstrap.com/docs/5.3/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot; integrity=&quot;sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH&quot; crossorigin=&quot;anonymous&quot;&gt;
&lt;!-- Favicons --&gt;
&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;https://getbootstrap.com/docs/5.3/assets/img/favicons/apple-touch-icon.png&quot; sizes=&quot;180x180&quot;&gt;
&lt;link rel=&quot;icon&quot; href=&quot;https://getbootstrap.com/docs/5.3/assets/img/favicons/favicon-32x32.png&quot; sizes=&quot;32x32&quot; type=&quot;image/png&quot;&gt;
&lt;link rel=&quot;icon&quot; href=&quot;https://getbootstrap.com/docs/5.3/assets/img/favicons/favicon-16x16.png&quot; sizes=&quot;16x16&quot; type=&quot;image/png&quot;&gt;
&lt;link rel=&quot;manifest&quot; href=&quot;https://getbootstrap.com/docs/5.3/assets/img/favicons/manifest.json&quot;&gt;
&lt;link rel=&quot;mask-icon&quot; href=&quot;https://getbootstrap.com/docs/5.3/assets/img/favicons/safari-pinned-tab.svg&quot; color=&quot;#712cf9&quot;&gt;
&lt;link rel=&quot;icon&quot; href=&quot;https://getbootstrap.com/docs/5.3/assets/img/favicons/favicon.ico&quot;&gt;
&lt;meta name=&quot;theme-color&quot; content=&quot;#712cf9&quot;&gt;
&lt;style&gt;
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.b-example-divider {
width: 100%;
height: 3rem;
background-color: rgba(0, 0, 0, .1);
border: solid rgba(0, 0, 0, .15);
border-width: 1px 0;
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}
.b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}
.bi {
vertical-align: -.125em;
fill: currentColor;
}
.nav-scroller {
position: relative;
z-index: 2;
height: 2.75rem;
overflow-y: hidden;
}
.nav-scroller .nav {
display: flex;
flex-wrap: nowrap;
padding-bottom: 1rem;
margin-top: -1px;
overflow-x: auto;
text-align: center;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.btn-bd-primary {
--bd-violet-bg: #712cf9;
--bd-violet-rgb: 112.520718, 44.062154, 249.437846;
--bs-btn-font-weight: 600;
--bs-btn-color: var(--bs-white);
--bs-btn-bg: var(--bd-violet-bg);
--bs-btn-border-color: var(--bd-violet-bg);
--bs-btn-hover-color: var(--bs-white);
--bs-btn-hover-bg: #6528e0;
--bs-btn-hover-border-color: #6528e0;
--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
--bs-btn-active-color: var(--bs-btn-hover-color);
--bs-btn-active-bg: #5a23c8;
--bs-btn-active-border-color: #5a23c8;
}
.bd-mode-toggle {
z-index: 1500;
}
.bd-mode-toggle .dropdown-menu .active .bi {
display: block !important;
}
&lt;/style&gt;
&lt;!-- Custom styles for this template --&gt;
&lt;link href=&quot;https://getbootstrap.com/docs/5.3/dist/css/checkout.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;/head&gt;
&lt;body class=&quot;bg-body-tertiary&quot;&gt;
&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;d-none&quot;&gt;
&lt;symbol id=&quot;check2&quot; viewBox=&quot;0 0 16 16&quot;&gt;
&lt;path d=&quot;M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z&quot;&gt;&lt;/path&gt;
&lt;/symbol&gt;
&lt;symbol id=&quot;circle-half&quot; viewBox=&quot;0 0 16 16&quot;&gt;
&lt;path d=&quot;M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z&quot;&gt;&lt;/path&gt;
&lt;/symbol&gt;
&lt;symbol id=&quot;moon-stars-fill&quot; viewBox=&quot;0 0 16 16&quot;&gt;
&lt;path d=&quot;M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z&quot;&gt;&lt;/path&gt;
&lt;path d=&quot;M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z&quot;&gt;&lt;/path&gt;
&lt;/symbol&gt;
&lt;symbol id=&quot;sun-fill&quot; viewBox=&quot;0 0 16 16&quot;&gt;
&lt;path d=&quot;M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z&quot;&gt;&lt;/path&gt;
&lt;/symbol&gt;
&lt;/svg&gt;
&lt;div class=&quot;dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle&quot;&gt;
&lt;button class=&quot;btn btn-bd-primary py-2 dropdown-toggle d-flex align-items-center&quot; id=&quot;bd-theme&quot; type=&quot;button&quot; aria-expanded=&quot;false&quot; data-bs-toggle=&quot;dropdown&quot; aria-label=&quot;Toggle theme (light)&quot;&gt;
&lt;svg class=&quot;bi my-1 theme-icon-active&quot; width=&quot;1em&quot; height=&quot;1em&quot;&gt;&lt;use href=&quot;#sun-fill&quot;&gt;&lt;/use&gt;&lt;/svg&gt;
&lt;span class=&quot;visually-hidden&quot; id=&quot;bd-theme-text&quot;&gt;Toggle theme&lt;/span&gt;
&lt;/button&gt;
&lt;ul class=&quot;dropdown-menu dropdown-menu-end shadow&quot; aria-labelledby=&quot;bd-theme-text&quot;&gt;
&lt;li&gt;
&lt;button type=&quot;button&quot; class=&quot;dropdown-item d-flex align-items-center active&quot; data-bs-theme-value=&quot;light&quot; aria-pressed=&quot;true&quot;&gt;
&lt;svg class=&quot;bi me-2 opacity-50&quot; width=&quot;1em&quot; height=&quot;1em&quot;&gt;&lt;use href=&quot;#sun-fill&quot;&gt;&lt;/use&gt;&lt;/svg&gt;
Light
&lt;svg class=&quot;bi ms-auto d-none&quot; width=&quot;1em&quot; height=&quot;1em&quot;&gt;&lt;use href=&quot;#check2&quot;&gt;&lt;/use&gt;&lt;/svg&gt;
&lt;/button&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;button type=&quot;button&quot; class=&quot;dropdown-item d-flex align-items-center&quot; data-bs-theme-value=&quot;dark&quot; aria-pressed=&quot;false&quot;&gt;
&lt;svg class=&quot;bi me-2 opacity-50&quot; width=&quot;1em&quot; height=&quot;1em&quot;&gt;&lt;use href=&quot;#moon-stars-fill&quot;&gt;&lt;/use&gt;&lt;/svg&gt;
Dark
&lt;svg class=&quot;bi ms-auto d-none&quot; width=&quot;1em&quot; height=&quot;1em&quot;&gt;&lt;use href=&quot;#check2&quot;&gt;&lt;/use&gt;&lt;/svg&gt;
&lt;/button&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;button type=&quot;button&quot; class=&quot;dropdown-item d-flex align-items-center&quot; data-bs-theme-value=&quot;auto&quot; aria-pressed=&quot;false&quot;&gt;
&lt;svg class=&quot;bi me-2 opacity-50&quot; width=&quot;1em&quot; height=&quot;1em&quot;&gt;&lt;use href=&quot;#circle-half&quot;&gt;&lt;/use&gt;&lt;/svg&gt;
Auto
&lt;svg class=&quot;bi ms-auto d-none&quot; width=&quot;1em&quot; height=&quot;1em&quot;&gt;&lt;use href=&quot;#check2&quot;&gt;&lt;/use&gt;&lt;/svg&gt;
&lt;/button&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;main&gt;
&lt;div class=&quot;py-5 text-center&quot;&gt;
&lt;img class=&quot;d-block mx-auto mb-4&quot; src=&quot;https://getbootstrap.com/docs/5.3/assets/brand/bootstrap-logo.svg&quot; alt=&quot;&quot; width=&quot;72&quot; height=&quot;57&quot;&gt;
&lt;h2&gt;Checkout form&lt;/h2&gt;
&lt;p class=&quot;lead&quot;&gt;Below is an example form built entirely with Bootstrap’s form controls. Each required form group has a validation state that can be triggered by attempting to submit the form without completing it.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;row g-5&quot;&gt;
&lt;div class=&quot;col-md-5 col-lg-4 order-md-last&quot;&gt;
&lt;h4 class=&quot;d-flex justify-content-between align-items-center mb-3&quot;&gt;
&lt;span class=&quot;text-primary&quot;&gt;Your cart&lt;/span&gt;
&lt;span class=&quot;badge bg-primary rounded-pill&quot;&gt;3&lt;/span&gt;
&lt;/h4&gt;
&lt;ul class=&quot;list-group mb-3&quot;&gt;
&lt;li class=&quot;list-group-item d-flex justify-content-between lh-sm&quot;&gt;
&lt;div&gt;
&lt;h6 class=&quot;my-0&quot;&gt;Product name&lt;/h6&gt;
&lt;small class=&quot;text-body-secondary&quot;&gt;Brief description&lt;/small&gt;
&lt;/div&gt;
&lt;span class=&quot;text-body-secondary&quot;&gt;$12&lt;/span&gt;
&lt;/li&gt;
&lt;li class=&quot;list-group-item d-flex justify-content-between lh-sm&quot;&gt;
&lt;div&gt;
&lt;h6 class=&quot;my-0&quot;&gt;Second product&lt;/h6&gt;
&lt;small class=&quot;text-body-secondary&quot;&gt;Brief description&lt;/small&gt;
&lt;/div&gt;
&lt;span class=&quot;text-body-secondary&quot;&gt;$8&lt;/span&gt;
&lt;/li&gt;
&lt;li class=&quot;list-group-item d-flex justify-content-between lh-sm&quot;&gt;
&lt;div&gt;
&lt;h6 class=&quot;my-0&quot;&gt;Third item&lt;/h6&gt;
&lt;small class=&quot;text-body-secondary&quot;&gt;Brief description&lt;/small&gt;
&lt;/div&gt;
&lt;span class=&quot;text-body-secondary&quot;&gt;$5&lt;/span&gt;
&lt;/li&gt;
&lt;li class=&quot;list-group-item d-flex justify-content-between bg-body-tertiary&quot;&gt;
&lt;div class=&quot;text-success&quot;&gt;
&lt;h6 class=&quot;my-0&quot;&gt;Promo code&lt;/h6&gt;
&lt;small&gt;EXAMPLECODE&lt;/small&gt;
&lt;/div&gt;
&lt;span class=&quot;text-success&quot;&gt;−$5&lt;/span&gt;
&lt;/li&gt;
&lt;li class=&quot;list-group-item d-flex justify-content-between&quot;&gt;
&lt;span&gt;Total (USD)&lt;/span&gt;
&lt;strong&gt;$20&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;form class=&quot;card p-2&quot;&gt;
&lt;div class=&quot;input-group&quot;&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Promo code&quot;&gt;
&lt;button type=&quot;submit&quot; class=&quot;btn btn-secondary&quot;&gt;Redeem&lt;/button&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div class=&quot;col-md-7 col-lg-8&quot;&gt;
&lt;h4 class=&quot;mb-3&quot;&gt;Billing address&lt;/h4&gt;
&lt;form class=&quot;needs-validation&quot; novalidate=&quot;&quot;&gt;
&lt;div class=&quot;row g-3&quot;&gt;
&lt;div class=&quot;col-sm-6&quot;&gt;
&lt;label for=&quot;firstName&quot; class=&quot;form-label&quot;&gt;First name&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;firstName&quot; placeholder=&quot;&quot; value=&quot;&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Valid first name is required.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-sm-6&quot;&gt;
&lt;label for=&quot;lastName&quot; class=&quot;form-label&quot;&gt;Last name&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;lastName&quot; placeholder=&quot;&quot; value=&quot;&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Valid last name is required.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-12&quot;&gt;
&lt;label for=&quot;username&quot; class=&quot;form-label&quot;&gt;Username&lt;/label&gt;
&lt;div class=&quot;input-group has-validation&quot;&gt;
&lt;span class=&quot;input-group-text&quot;&gt;@&lt;/span&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;username&quot; placeholder=&quot;Username&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Your username is required.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-12&quot;&gt;
&lt;label for=&quot;email&quot; class=&quot;form-label&quot;&gt;Email &lt;span class=&quot;text-body-secondary&quot;&gt;(Optional)&lt;/span&gt;&lt;/label&gt;
&lt;input type=&quot;email&quot; class=&quot;form-control&quot; id=&quot;email&quot; placeholder=&quot;you@example.com&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Please enter a valid email address for shipping updates.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-12&quot;&gt;
&lt;label for=&quot;address&quot; class=&quot;form-label&quot;&gt;Address&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;address&quot; placeholder=&quot;1234 Main St&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Please enter your shipping address.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-12&quot;&gt;
&lt;label for=&quot;address2&quot; class=&quot;form-label&quot;&gt;Address 2 &lt;span class=&quot;text-body-secondary&quot;&gt;(Optional)&lt;/span&gt;&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;address2&quot; placeholder=&quot;Apartment or suite&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;col-md-5&quot;&gt;
&lt;label for=&quot;country&quot; class=&quot;form-label&quot;&gt;Country&lt;/label&gt;
&lt;select class=&quot;form-select&quot; id=&quot;country&quot; required=&quot;&quot;&gt;
&lt;option value=&quot;&quot;&gt;Choose...&lt;/option&gt;
&lt;option&gt;United States&lt;/option&gt;
&lt;/select&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Please select a valid country.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-md-4&quot;&gt;
&lt;label for=&quot;state&quot; class=&quot;form-label&quot;&gt;State&lt;/label&gt;
&lt;select class=&quot;form-select&quot; id=&quot;state&quot; required=&quot;&quot;&gt;
&lt;option value=&quot;&quot;&gt;Choose...&lt;/option&gt;
&lt;option&gt;California&lt;/option&gt;
&lt;/select&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Please provide a valid state.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-md-3&quot;&gt;
&lt;label for=&quot;zip&quot; class=&quot;form-label&quot;&gt;Zip&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;zip&quot; placeholder=&quot;&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Zip code required.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;hr class=&quot;my-4&quot;&gt;
&lt;div class=&quot;form-check&quot;&gt;
&lt;input type=&quot;checkbox&quot; class=&quot;form-check-input&quot; id=&quot;same-address&quot;&gt;
&lt;label class=&quot;form-check-label&quot; for=&quot;same-address&quot;&gt;Shipping address is the same as my billing address&lt;/label&gt;
&lt;/div&gt;
&lt;div class=&quot;form-check&quot;&gt;
&lt;input type=&quot;checkbox&quot; class=&quot;form-check-input&quot; id=&quot;save-info&quot;&gt;
&lt;label class=&quot;form-check-label&quot; for=&quot;save-info&quot;&gt;Save this information for next time&lt;/label&gt;
&lt;/div&gt;
&lt;hr class=&quot;my-4&quot;&gt;
&lt;h4 class=&quot;mb-3&quot;&gt;Payment&lt;/h4&gt;
&lt;div class=&quot;my-3&quot;&gt;
&lt;div class=&quot;form-check&quot;&gt;
&lt;input id=&quot;credit&quot; name=&quot;paymentMethod&quot; type=&quot;radio&quot; class=&quot;form-check-input&quot; checked=&quot;&quot; required=&quot;&quot;&gt;
&lt;label class=&quot;form-check-label&quot; for=&quot;credit&quot;&gt;Credit card&lt;/label&gt;
&lt;/div&gt;
&lt;div class=&quot;form-check&quot;&gt;
&lt;input id=&quot;debit&quot; name=&quot;paymentMethod&quot; type=&quot;radio&quot; class=&quot;form-check-input&quot; required=&quot;&quot;&gt;
&lt;label class=&quot;form-check-label&quot; for=&quot;debit&quot;&gt;Debit card&lt;/label&gt;
&lt;/div&gt;
&lt;div class=&quot;form-check&quot;&gt;
&lt;input id=&quot;paypal&quot; name=&quot;paymentMethod&quot; type=&quot;radio&quot; class=&quot;form-check-input&quot; required=&quot;&quot;&gt;
&lt;label class=&quot;form-check-label&quot; for=&quot;paypal&quot;&gt;PayPal&lt;/label&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row gy-3&quot;&gt;
&lt;div class=&quot;col-md-6&quot;&gt;
&lt;label for=&quot;cc-name&quot; class=&quot;form-label&quot;&gt;Name on card&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;cc-name&quot; placeholder=&quot;&quot; required=&quot;&quot;&gt;
&lt;small class=&quot;text-body-secondary&quot;&gt;Full name as displayed on card&lt;/small&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Name on card is required
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-md-6&quot;&gt;
&lt;label for=&quot;cc-number&quot; class=&quot;form-label&quot;&gt;Credit card number&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;cc-number&quot; placeholder=&quot;&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Credit card number is required
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-md-3&quot;&gt;
&lt;label for=&quot;cc-expiration&quot; class=&quot;form-label&quot;&gt;Expiration&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;cc-expiration&quot; placeholder=&quot;&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Expiration date required
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col-md-3&quot;&gt;
&lt;label for=&quot;cc-cvv&quot; class=&quot;form-label&quot;&gt;CVV&lt;/label&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;cc-cvv&quot; placeholder=&quot;&quot; required=&quot;&quot;&gt;
&lt;div class=&quot;invalid-feedback&quot;&gt;
Security code required
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;hr class=&quot;my-4&quot;&gt;
&lt;button class=&quot;w-100 btn btn-primary btn-lg&quot; type=&quot;submit&quot;&gt;Continue to checkout&lt;/button&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/main&gt;
&lt;footer class=&quot;my-5 pt-5 text-body-secondary text-center text-small&quot;&gt;
&lt;p class=&quot;mb-1&quot;&gt;© 2017–2024 Company Name&lt;/p&gt;
&lt;ul class=&quot;list-inline&quot;&gt;
&lt;li class=&quot;list-inline-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Privacy&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;list-inline-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Terms&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;list-inline-item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Support&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/footer&gt;
&lt;/div&gt;
&lt;script src=&quot;https://getbootstrap.com/docs/5.3/dist/js/bootstrap.bundle.min.js&quot; integrity=&quot;sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://getbootstrap.com/docs/5.3/examples/checkout/checkout.css&quot;&gt;&lt;/script&gt;
&lt;/body&gt;&lt;/html&gt;</code></pre>