การกําหนดค่า Head ของเว็บเพจ
HTML เป็นส่วนของการจัด presentation ในหน้า web page หนึ่งๆ จะประกอบด้วย ส่วน Head และ Body ซึ่ง เป?นส?วนการแสดงข้อมูลหลัก ในส่วนต่างๆ เลือกใช้ tag เพื่อประกอบการสร้างเว็บเพจได้ดังนี้ ส่วน Head <head>…</head>
ตัวอย่าง<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta name=”Keywords” content=”keyword1,keyword2,keyword3″>
<meta name=”Description” content=”Describe your site in a single phrase no exceeding 20 words”>
<meta name=”robots” content=”index,follow”>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
<meta http-equiv=”refresh” content=”10;URL=’http://www.google.com”>
<meta http-equiv=”refresh” content=”600″>
<style type=”text/css” media=”screen”>
<!–
font { font-family: “Ms Sans Serif” }
.margin { margin: 10px 4px 4px }
a { color: black; font-weight: font-size: 10px; font-family: “Ms Sans Serif”; ; text-decoration: none }
a:visited { font-weight: font-size: 10px; font-family: “Ms Sans Serif”; text-decoration: none }
a:hover { color: #0072bc ; text-decoration: none }
–>
</style>
<style type=”text/css” media=”screen”>
<!–
BODY {
scrollbar-arrow-color:white;
scrollbar-base-color:#6D8693;
scrollbar-shadow-color:#687787;
scrollbar-face-color:#687787;
scrollbar-highlight-color:#D0D8E0;
scrollbar-dark-shadow-color:#C2C9CF;
scrollbar-3d-light-color:#9BAAC1;
}
–>
</style>
<link rel=”stylesheet” type=”text/css” href=”CSS/body_Style.css”>
</HEAD> <BODY>
เนื้อหา
</BODY>
</HTML>
ขอบคุณที่แวะมา
สวัสดี
Tags: html, ้head
Results

















