html & xhtml demystified

399 380 0
html & xhtml demystified

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... closed before the p tag. < /html> XHTML is the language taught in this book If you are new to web development, it is in your best interest to start with XHTML Experienced developers are strongly encouraged to switch to XHTML If you use XHTML for all of your development projects, your site will run well on all browsers on every computer Tip  The XHTML rules seem harsh They are easy to implement... the HTML rules HTML coded in this fashion may render incorrectly in different browsers and computers XHTML solves this problem XHTML is nearly identical to HTML but requires developers to write all pages with proper syntax The syntax for XHTML is much stricter than for HTML When a web designer uses XHTML properly, that will result in a page that is well-formed Not e   “Well-formed” means several things:... your way to write bad XHTML Chapter 1 H T M L a n d th e W e b HTML 5 HTML 5 is the upcoming replacement for HTML 4.01 It merges HTML and XHTML features The new standard has deprecated several tags and introduced several new tags and design elements W3C has not recommended HTML 5 It is still changing Several commercial sites, including www.youtube.com, have switched their code to HTML 5 Throughout this... site The current version of HTML is 4.01, as of this writing W3C formally recommended version 4.01 on December 24, 1999 It added several elements, corrected some mistakes from version 3, and deprecated several elements Extensible HTML (XHTML) HTML is an extraordinary language However, it has some flaws The flaws allow developers to use bad syntax, and not follow the HTML rules HTML coded in this fashion... study, play, or work—has an online component Understanding how these online components work is crucial This book is not just about HTML; it actually covers three languages very well This book covers HTML, its cousin XHTML, and the web formatting language CSS You cannot learn HTML without encountering CSS The book seamlessly integrates the three technologies By the time you finish the book, you will be... blank Contents Acknowledgments Introduction xvii xix chapter 1 HTML and the Web A Brief History of the Internet What Is HTML? Versions of HTML Other Web Languages Web Editing Tools Code Editors WYSIWYG Editors Web Browsers Summary Quiz 2 4 5 7 8 8 10 11 13 14 chapter 2 Your First Web Pages 17 Components of a Web Page Doctype Head Body An HTML Template Using the Template Creating Your First Web Site... contained within another tag must be nested properly; all tags are in lowercase; all documents have one tag called the root element; and attributes must be set to a value, held inside of quotation marks 5 d Code Block 1-2 contains a complete XHTML document It contains one root element, the tag All other tags are nested within this tag To understand nesting, think of the toy dolls that fit... H T M L & X H T M L Demys tified What Is HTML? HTML stands for Hypertext Markup Language Hypertext is the technology that allows for links on the Web On every web page visit, there is likely a link to another resource These links contain a Uniform Resource Locator (URL) to another document The URL is simply the web site name and the page An example URL is www.google.com The second half of HTML is Markup... Dynamic HTML 253 chapter 11 Effectively Using Multimedia 279 chapter 12 Using Frames 303 Using Functions in JavaScript DHTML Visual Examples Practice Changing Page Styles Rollovers DHTML Content Examples Change Paragraph Content Cookies Summary Quiz Sound Embedding Sounds Playing Sounds on Demand Flash Embedding Flash Practice Embedding a Flash Animation Movies Playing Movies on a Click Embedding Movies HTML. .. still changing Several commercial sites, including www.youtube.com, have switched their code to HTML 5 Throughout this book, you will find tips discussing the likely changes from XHTML syntax in HTML 5 Other Web Languages HTML is the premier language on the Internet However, it is far from the only language Several other languages exist Some are helper languages, while others allow developers to create . HTML Tags 28 Proper Use of Tags 28 <p> 29 <br /> 30 <hr /> 32 <h1>, <h2>, <h3>, <h4>, <h5>, <h6> 32 <! > 34 Attributes of Tags 35 CSS. Demystified Genetics Demystified Geometry Demystified HTML & XHTML Demystified Java Demystified JavaScript Demystified Lean Six Sigma Demystified Linear Algebra Demystified Logic Demystified Macroeconomics Demystified Math. Demystified Algebra Demystified, 2e Alternative Energy Demystified ASP.NET 2.0 Demystified Astronomy Demystified Biology Demystified Biophysics Demystified Biotechnology Demystified Business Calculus Demystified Business

Ngày đăng: 05/04/2014, 14:15

Mục lục

    Chapter 1 HTML and the Web

    A Brief History of the Internet

    Chapter 2 Your First Web Pages

    Components of a Web Page

    Creating Your First Web Site

    Practice Creating a Web Site

    Web Site Creation Checklist

    Proper Use of Tags

    <h1>, <h2>, <h3>, <h4>, <h5>, <h6>

    <!-- -->

Tài liệu cùng người dùng

Tài liệu liên quan