Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 26 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
26
Dung lượng
186,53 KB
Nội dung
Elder L. Lionel Kendrick Of the First Quorum of the Seventy • It has been from the beginning and it will be till the end that the natural man will have a tendency to rationalize and to blam e his behaviors on others or on certain circumstances. When we attempt to place responsibility for our choices on others, we are responding in a less than Christlike manner. Blaming is an unrighteous form of communication. http://www.w3schools.com html/xhtml Objectives In this chapter, you will: • Learn about HTML and XHTML • Work with XHTML DTDs • Study elements and attributes • Work with basic body elements • Link your Web pages • Validate your Web pages 6XHTML Document Type Definition (DTDs) • A well formed document is a document that conforms to the rules and requirements of XHTML. • <!DOCTYPE> determines the XHTML DTD with which the document complies. • DTD (Document Type Definition) defines the tags and attributes that can be used in a document. XHTML Document Type Definition (DTDs) • Three types of DTDs can be used with XHTML documents: Transitional, Strict, and Frameset. • Deprecated elements are elements that are considered obsolete and they will be eventually removed from a language. – Examples of deprecated HTML elements: <applet>, <basefont>, <center>, <dir>, <menu>… – http://www.w3schools.com/tags/default.asp http://www.w3.org/TR/REC-html40/index/attributes.html XHTML Document Type Definition (DTDs) • A Transitional DTD allows the use of deprecated style tags in HTML documents: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www/w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> XHTML Document Type Definition (DTDs) • The Frameset DTD is identical to the Transitional DTD, except that it includes the <frameset> and <frame> elements: <!DOCTYPE html PUBLIC“-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”> XHTML Document Type Definition (DTDs) The Strict DTD eliminates deprecated elements in the Transitional DTD and Frameset DTD: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> Introduction to HTML The general form of an HTML document is as follows: <html> <head> <title>title goes here</title> </head> <body> The body of the document goes here </body> </html> 9XHTML Elements and Attributes • An element is the tag pair and the information it contains. • Elements that do not include a closing tag are called empty elements. • Content is the information contained within an element’s opening and closing tags. [...]... tag is an example of an attribute: • To insert spaces in an HTML document, use the and tags XHTML Elements and Attributes 11 • Standard attributes are attributes that are available to almost every element – Examples of standard attributes: class, dir, xml: lang, and style • lang and xml: lang designate the language of the elements • dir is used with lang Its values are...XHTML Elements and Attributes • There are two basic types of elements: blocklevel and inline • Block-level elements: give the Web page its structure – Examples of block-level elements: , , , and • Inline elements: used to describe the text that appears on a Web page – Example of inline elements: and Introduction to HTML • Attributes are used to configure HTML tags... for electrical resistance impedance. or 30 Validating Web Pages • A validating parser is a program that checks whether an XHTML document is well formed and whether the document conforms to a specific DTD • A validator is available on: http://validator.w3.org • English and many Western languages use the ISO8859-1 character set ... open files or to navigate to other documents on the Web • Anchor is a text or image used to represent a link on a Web page • The element is used to create basic hypertext links: A Web Page 24 Linking Web Pages • The element can be used to create a link to an external document or to a bookmark inside the current document • Any element that includes an id attribute . DTD: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> Introduction to HTML The general form of an HTML document is as follows: < ;html& gt; <head> <title>title. <frameset> and <frame> elements: <!DOCTYPE html PUBLIC“-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”> XHTML Document Type Definition (DTDs) The Strict. form of communication. http://www.w3schools.com html/ xhtml Objectives In this chapter, you will: • Learn about HTML and XHTML • Work with XHTML DTDs • Study elements and attributes • Work