https://getbootstrap.com/docs/4.0/getting-started/introduction/
위 사이트를 접속하여 부트스트랩 시작코드를 가져올수있습니다.
결과물
코드
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<title>휴대폰 스토어</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Gugi&display=swap" rel="stylesheet">
<style>
* {
font-family: 'Gugi', cursive;
}
.main_img {
text-align: center;
margin: 20px auto 50px auto;
}
.item-desc {
width: 600px;
margin-bottom: 50px;
}
.price {
font-size: 15px;
color: maroon;
font-weight: bold;
}
.item-order {
width: 600px;
margin-bottom: 20px;
}
.warp {
margin: auto;
width: 600px;
}
.order-btn {
margin: auto;
width: 100px;
display: block;
}
</style>
<script>
function order(){
alert('주문이 완료되었습니다!!')
}
</script>
</head>
<body>
<div class="main_img">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABA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QFJyk8dXbyJPXYtDCzvKTx1dvIk9eNaIFw8k9Gd37pdz8vrKGKmL+0u5+X1lDrVHCOQikkJSKikCaIUSkEBzQoulEVEBzohRLohRAc6IiF0oicgL7klv5eRD2PVmVZyR30vNwdkisyzT9iTPt2AltjbIBXubw7pDmED0K3WO1MmjZLGQ5kjWvaRra4VHaiyhuhlss77O/APGB00NCNHESOlZPYbBftzl0VnaJoakhjmlzAScS0ggtJ2A0xqRVcp0TlGsWqziRpGvUdh41EG62t/vAXiuhra1xqK4E/8qn/AHyvz8BF5s37kf3zvz8BF1TfuXanRG0u0+T1nkADmUpopQUrq0f1T+w2GOBmZEwNGnDSTtJ1lZ398r7/AAEXVN80Pvlff4CLqm+aOd8NijTEFmf3yvv8BF1TfNH98r7/AAEXVN81G5E0zS0Fmf3yvv8AARdU3zQOWV9/gIuqb5puQpmmILMvvlfn4CLzZv3LhaMpcopxmR2VkRdhntY9zxwtz3EegpuQpkpfNsbLlBZYWGps0ff08l0j2nNPCGhh/wBy01Z3udZEyWN7rVanZ00lTiS51TWrnOOJOJ0444rRFyGZzfxo+Ruts7z0PAcO1RCumVFwPld3aHFxADmaM6mhwO0BVX7BIMHMe07HMcr4yVEUNUSefYX7HeY5H9hdsd5jl1uj9IpjJBPfsDtjvMch9gdsd5jk3R+imMUE+/s92x3mORf2e7Y7zHJuj9FMZUQonv8AZ7tjvMci+wO2O8xybo/RTGSS7QnxsDtjvMclQ3LaJHBrGOOO+c3NYOEk9ibo/RTLXkhi6YjQGxN6WtcT6wVnUbcl2CzRCMHOJJc52jOcdJ7B0KTWeXLJAgggoAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEAEEEEB//9k="
width="600" height="450"/>
</div>
<div class="warp">
<div class="item-desc">
<h1>갤럭시 S21 초특가 <span class="price"> 가격 : 359900원 / SKT기변</span></h1>
<h3>오늘만 이가격입니다. 원가 140만원 최신형 휴대폰 !! 한정수량 100개 판매 BTS 한정판 선택가능합니다. 어서어서 서두르세요</h3>
</div>
<div class="item-order">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">주문자이름</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text" for="inputGroupSelect01">수량</label>
</div>
<select class="custom-select" id="inputGroupSelect01">
<option selected>---수량을 선택하세요---</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">주소</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">전화번호</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
</div>
<button type="button" onclick="order()" class="btn btn-primary order-btn">주문하기</button>
</div>
</body>
</html>