...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/
txhtml1-strict.dtd">
< ;html xmlns=“http://www.w3.org/1999/xhtml”>
< /html& gt;
<head>
... L a n d X H T M L
15
PART I
HTML or XHTML Version Description
HTML 2.0 Classic HTML dialect supported by browsers such as Mosaic. This
form of HTML supports core HTML elements and features such ... to the book.</p>
</body>
< /html& gt;
O
NLINE
http://htmlref.com/ch1 /html5 helloworld .html
In the case of XHTML, which is a form of HTML that is based upon the syntax rules of...
...
</body>
< /html& gt;
ONLINE http://htmlref.com/ch2/xhtml5helloworld.xhtml
NOTE When using XML syntax with HTML5 according to HTML5 specification, this should be
termed XHTML5.
Please purchase ... to the new simple HTML5 <!DOCTYPE html& gt;, the
result should be an HTML5 –conforming document.
XHTML5
For those with a heavy investment in a strict XHTML syntax worldview, HTML5 might
seem ... between XHTML
and HTML but with some precise markup you'll
see such differences are easily addressed.</p>
</body>
< /html& gt;
ONLINE http://htmlref.com/ch1/xhtmlasxml.html...
... associated JavaScript is presented here:
<!DOCTYPE html& gt;
< ;html& gt;
<head>
<meta http-equiv="Content-Type" content="text /html; charset=utf-8">
<title> ;HTML5 ... src="http://htmlref.com/ch2 /html_ 5.mp4" type="video/mp4">
<source src="http://htmlref.com/ch2 /html_ 5.ogv" type="video/ogg">
<object data=" ;html_ 5.swf" ... supported
but varies
No defer
support
HTML, JavaScript, and the DOM Renewed
The W3C’s DOM specifications (www.w3.org/DOM) provide the interface between
(X )HTML and JavaScript. These APIs allow Web...
... gains over strict
XHTML 1.0.
XHTML 2.0 www.w3.org/TR/xhtml2/ A new implementation of XHTML that will not
provide backward compatibility with XHTML 1.0
and traditional HTML. XHTML 2 will remove ... to HTML.
XHTML 1.0 Strict www.w3.org/TR/xhtml1/ A reformulation of HTML 4.0 Strict using XML.
This language is rule enforcing and leaves all
presentation duties to technologies like CSS.
XHTML ... "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www
.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
<!DOCTYPE...
... strict versions of HTML and XHTML do not include the
center element, but it
is easily imitated with the text-align CSS property.
ã HTML5 defines the
center element as obsolete.
ã HTML 3.2 does ... all HTML specifications. For
XHTML compatibility, a closing slash is required: <br />.
ã Under the strict (X )HTML specifications and HTML5 , the
clear attribute is not valid.
The CSS ... size.</p>
Compatibility
HTML 3, 3.2, 4, 4.01
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 1.1+, Opera 2.1+, Safari 1+
Notes
ã This element was originally introduced in HTML 3 and moved to HTML...
...
here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
< ;html xmlns="http://www.w3.org/1999/xhtml" ... document, the
html element is called the root
element.
ã The
< ;html& gt; tag and its closing tag < /html& gt; are both mandatory under XHTML.
Under other specifications, including HTML5 , the ... metadata and its meaning.
Examples
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/
html4 /strict.dtd">
< ;html& gt;
<head>
<meta http-equiv="Content-Type"...
... href="small .css& quot;
type="text /css& quot;>
<link rel="alternate stylesheet" title="1024x768" href="big .css& quot;
type="text /css& quot;>
<link ... under HTML specifications.
However, under the XHTML specification, a trailing slash <isindex /> is required.
ã The HTML 3.2 specification only allows the
prompt attribute, whereas HTML ...
rel="icon">
HTML5
index
The link references a page
that provides an index for
the current document.
<link href="docindex .html& quot;
rel="index" />
HTML 4, 5
last
A...
... transitional specification of HTML 4.01 also defines center, justify, and
right. However, under the strict HTML and XHTML specifications, text alignment can be
handled through the CSS property text-align.
Examples
<p ...
335
PART I
Compatibility
HTML 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 3+,
Netscape 4+, Opera 4+, Safari 1+
Notes
ã Under the strict HTML and XHTML specifications, the ... browsers will render them anyway.
ã The strict HTML and XHTML specifications drop support for the
width attribute,
which was not well supported anyway.
ã The HTML 2.0 and 3.2 specifications support...
... e n c e
381
PART I
Example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/
html4 /strict.dtd">
< ;html& gt;
<head>
<meta http-equiv="Content-Type" ... }</tt></p>
Compatibility
HTML 2, 3.2, 4, 4.01
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 2.1+, Safari 1+
Note
ã This element has been deprecated by the W3C under XHTML 1.1 and ... marked as
obsolete HTML5 . However, like other HTML5 obsolete items this element continues to
work in browsers. The look of the tag can be replicated with the
font or font-family
CSS property set...
... browsers.
TABLE 4-3 Common (X )HTML Structures Moved to CSS
The Specification of CSS
CSS 2.1 has a grammar (www.w3.org/TR /CSS2 1/grammar .html) but unlike traditional
(X )HTML it is not defined with ... book.</p>
</body>
< /html& gt;
ONLINE http://htmlref.com/ch4/hellocssworld .html
The preceding example uses some of the common CSS properties used in (X )HTML
documents and there are some ... running. In Figure 4-5, we see the CSS version of the page as
compared to the HTML- only version.
FIGURE 4-5 Example Hello CSS World rendering
Plain HTML
HTML styled
by CSS
Please purchase PDF Split-Merge...
...
</body>
< /html& gt;
CSS is simply a much more powerful presentation technology than markup.
ONLINE http://htmlref.com/ch4/csspower .html
Cross-Browser CSS Madness
While CSS is certainly ... many CSS2 features removed
from this specification are found in
CSS3 modules. This is currently the
recommended CSS specification for
study and use.
CSS3 www.w3.org/Style /CSS/ current-work #CSS3 ... href="http://www.htmlref.com"> ;HTML: The Complete Reference</a>
</body>
< /html& gt;
ONLINE http://htmlref.com/ch4/linkstates .html
Although the CSS rules associated...
... to italic
in any p tag that has CSS in its
title */
CSS3
a:link
Specifies the unvisited
link
a:link {font-weight: bold;}
/* makes unvisited links bold */
CSS1
a:active
Specifies the link as ...
value
p[title^=" ;HTML& quot;] {color: green;}
/* sets the color to green if the
title starts with HTML */
CSS3
TABLE 5-5 CSS Selectors
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
... media-
specific style rules inline on individual elements.
CSS Measurements
CSS supports a number of measurements. In most cases, they involve a number, and CSS
supports both positive and negative integer...
... tử HTML bằng câu lệnh JavaScript
Viết lệnh xử lý một số sự kiện đơn giản.
Nội dung:
6
TÀILIỆU DÀNH CHO KHÓA HỌC
CƠ BẢN VỀ HTML, JAVASCRIPT, CSS VÀ ASP
Tàiliệu này chứa những gì? Tàiliệu ... Web.
Cần có những kiến thức gì trước khi đọc tàiliệu này?
Cần có kiến thức cơ bản về lập trình nói chung.
Giáo trình lý thuyết
- HTML, DHTML & JavaScript của Aptech worldwide
Các trang ... làm hết các bài tập trong sách giáo khoa của cuốn giáo trình HTML,
DHTML & JavaScript.
47
Click chuột vào bất kỳ đâu trong tàiliệu (Xem lại phần Nổi bọt sự kiện) >
<BODY onClick =...