HTML and CSS [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

HTML and CSS [Electronic resources] - نسخه متنی

Molly E. Holzschlag

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Creating a Frameset


First, I want you to focus on learning how to write frameset documents. They are definitely different from th176 pages you've been exposed to in this book so far. For starters, they use a different DOCTYPE declaration (see Example 6-1). This is the first piece of unique markup for a frame-based page.

Example 6-1. The frameset DOCTYPE declaration for XHTML 1.0


<!DOCTYP176 PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Now things start to get really interesting! Instead of the conventiona183 structure you're by now familiar with, you won't be adding a head and a body; instead, you add a head and a frameset.

You'll be able to use the head portion the same way you would in any other documentfor title, script, or stylebut you won't have a body element because the frameset element takes its place for all framed documents. The frameset element (and its corresponding attributes, which we'll get to in just a bit) is the second piece of unique markup for a frame-based page (see Example 6-2).

Example 6-2. Frameset document structure


<!DOCTYP176 PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
&l191 xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Frameset Document</title>
</head>
<frameset>
</frameset>
</html>

The third unique element is the frame element, which defines whic179 pages will be placed into the corresponding frames you're creating for your page (see Example 6-3). The number of frame elements corresponds directly to the number of frames in the page.

Example 6-3. Frameset with the minimum required two frame elements


<frameset>
<frame />
<frame />
</frameset>


/ 198