Search

_0111_백틱_회원가입

대분류
STEP01 태그선택
소분류
태그선택

영상

개념

이미지 파일

join.jpg
3.0KB
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <!-- [개념] 백틱( ` ) 문자열 내부에서 ${} 를 사용해 변수를 사용할 수 있다. --> <span id="msg"></span> <script> let tag = ""; tag += ` <style> .first { vertical-align: top; width: 158px; height: 60px; padding: 15px 0px 0px 10px; } .second { width: 158px; height: 60px; padding: 15px 0px 0px 10px; } .inputForm { width: 332px; height: 44px; font-size: 15px; border: 1px solid lightgray; border-radius: 5px; outline: none; padding-left: 10px; } </style> `; tag += ` <div align="center"> <br><br> <font size="5" color="#3a3a3a"><b>회원가입</b></font> <hr width="300px" color="#196ab3"> <br><br> <table> <tr> <td class="first">아이디</td> <td class="second"> <input type="text" class="inputForm" id="data-memberId" placeholder="아이디를 입력해주세요." autofocus="autofocus"> </td> </tr> <tr> <td class="first">비밀번호</td> <td class="second"> <input type="password" class="inputForm" id="data-memberPw" placeholder="비밀번호를 입력해주세요"> </td> </tr> <tr> <td class="first">이름</td> <td class="second"> <input type="text" class="inputForm" id="data-memberName" placeholder="이름을 입력해주세요"> </td> </tr> <tr> <tr> <td class="first">이메일</td> <td class="second"> <input type="text" class="inputForm" id="data-memberEmail" placeholder="예:hong@itbook.com"> </td> </tr> <tr height="150px"> <td colspan="2" align="center"> <input type="image" id="btn-joinPro" src="join.jpg" style="width: 300px"> </td> </tr> </table> </div> `; let element = document.querySelector("#msg"); element.innerHTML = tag; </script> </body> </html>
Java
복사