-
-
Save codingwithsara/fda3163375ea8c1e194fa71e711aa293 to your computer and use it in GitHub Desktop.
PHP お問い合わせフォーム HTML・CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="jp"> | |
<head> | |
<meta charset="utf-8"> | |
<title>お問い合わせフォーム</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+JP" rel="stylesheet"> | |
<style> | |
body { | |
background: #f3f3f3; | |
} | |
.container { | |
font-family: "Noto Sans JP"; | |
margin-top: 60px; | |
} | |
h1 { | |
margin-bottom: 50px; | |
text-align: center; | |
} | |
button { | |
margin-top: 30px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-offset-4 col-xs-4"> | |
<h1>お問い合わせ</h1> | |
<form method="post"> | |
<div class="form-group"> | |
<input type="text" class="form-control" name="name" placeholder="お名前" value=""> | |
</div> | |
<div class="form-group"> | |
<input type="text" class="form-control" name="email" placeholder="メールアドレス" value=""> | |
</div> | |
<div class="form-group"> | |
<input type="text" class="form-control" name="subject" placeholder="件名" value=""> | |
</div> | |
<div class="form-group"> | |
<textarea class="form-control" name="message" rows="5" placeholder="本文"></textarea> | |
</div> | |
<button type="submit" class="btn btn-success btn-block">送信</button> | |
</form> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment