Last active
March 4, 2019 06:24
-
-
Save sezemiadmin/d0470d9d71120fa1450ff416a624aaf3 to your computer and use it in GitHub Desktop.
HTML5/CSS3で学ぶWebの基本と新技術 のサンプルコード
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 audio</title> | |
</head> | |
<body> | |
<audio controls> | |
<source src="[ファイルパス/ファイル名]" type="audio/mpeg" /> | |
<p>Your device does not support HTML5 audio.</p> | |
</audio> | |
</body> | |
</html> |
This file contains hidden or 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> | |
<head> | |
<title>CSS3 Border Radius Examples</title> | |
<style> | |
div { | |
background: #39C; | |
width: 300px; | |
height: 200px; | |
margin: 10px; | |
border: solid 3px #039; | |
float: left; | |
} | |
.box1 { | |
border-radius: 10px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="box1"></div> | |
</body> | |
</html> |
This file contains hidden or 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> | |
<head> | |
<title>CSS Multi-column Layout Module</title> | |
<style> | |
.outer { | |
display: flex; | |
width: 60%; | |
} | |
.inner { | |
color: white; | |
font-size: 20px; | |
padding: 10px; | |
} | |
.inner:nth-child(1) { background: #0074bf; } | |
.inner:nth-child(2) { background: #d16b16; } | |
.inner:nth-child(3) { background: #9460a0; } | |
</style> | |
</head> | |
<body> | |
<div class="outer"> | |
<div class="inner"> | |
Flexbox is similar to the block layout, except that it lacks many of the properties that can be used in a block layout, such as floats and columns. | |
</div> | |
<div class="inner"> | |
Using flexbox, you can also lay elements out inside a container in either directions: horizontal or vertical, called the flex directions; you’re not bound to just one direction as in other layout modes. | |
</div> | |
<div class="inner"> | |
Last but not least, you can change the visual order of elements inside the container without affecting their actual order in the markup. | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>HTML5 Form</title> | |
<script> | |
function showValue(val) { | |
document.getElementById("output").value = val; | |
} | |
</script> | |
</head> | |
<body> | |
<h3>Date and Time Input Field</h3> | |
<form> | |
<fieldset> | |
<legend>Appointment Request</legend> | |
<p><label>Date <input type="date" name="date" value="2011-03-15"></label></p> | |
</fieldset> | |
<p><button type="submit">Submit</button></p> | |
</form> | |
<hr> | |
<form action="#" autocomplete="on"> | |
<table> | |
<tr> | |
<td>インクリメンタル・サーチ:</td> | |
<td> | |
<input type="seach" list="keywords"> | |
<datalist id="keywords"> | |
<option value="Canvas">Canvas</option> | |
<option value="Web Workers">Web Workers</option> | |
<option value="WebSocket">WebSocket</option> | |
</datalist> | |
</td> | |
</tr> | |
<tr> | |
<td><input type="file" id="file" multiple></td> | |
</tr> | |
</table> | |
</form> | |
<body> | |
</html> |
This file contains hidden or 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
@media (min-width: 1190px) { | |
/* 全体の横幅を固定 */ | |
.top-box, .etc-box, .header-inner, .copyright, article.main { | |
width: 1140px; | |
margin-left: auto; | |
margin-right: auto; | |
} |
This file contains hidden or 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
<style> | |
<tag> { | |
font-size: 16px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment