HTTPやHTMLのヘッダーで、文字コードUTF-8を指定するとき、
Content-type: text/html; charset=UTF-8
"UTF-8"の書き方で迷ったことはありませんか?Content-type: text/html; charset=UTF-8
"UTF-8"の書き方で迷ったことはありませんか?<base href="http://example.com/subdirectory/" target="_self">
こうすると、以降このHTML文書内では"subdirectory"が相対URLの基点になります。<base href="http://example.com/subdirectory/" target="_self">
<link rel="stylesheet" href="styles.css" type="text/css" />
と書くと、(このHTMLファイル自体の保存場所がどの階層であろうとも) <br />
<br/>