

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to HTML and XHTML, covering traditional HTML and XHTML, markup elements, viewing markup locally and with a web server, version history of HTML and XHTML, and document type statements and language versions. It explains how markup instructions found within a web page depend on the structure of the document to the browser software. It also covers the use of markup elements, empty elements, and attributes that modify the meaning of the tag. a brief summary of the version history of HTML and XHTML and explains the importance of document type statements and language versions.
Typology: Study notes
1 / 25
This page cannot be seen from the preview
Don't miss anything!


















and
paragraph tag pair indicates a paragraph of text. - A special character is inserted using a named entity (♥), which in this case inserts a heart dingbat character into the text. - The and tag pair surrounds a small piece of text to emphasize which a browser typically renders in italics.), as shown by the dash, and an optional close tag (
), as indicated by the O.tag as indicated by the entity %attrs which then expands to a number of entities like %core, %i18n, and %coreevents which finally expand into a variety of attributes like id, class, style, title, lang, dir, onclick, ondblclick, and many more.
(X)HTML documents should begin with a declaration. \
This statement identifies the type of markup that is supposedly used in a document. For example,
indicates that we are using the transitional variation of HTML 4.01 that starts with a root element html.
In other words, an tag will serve as the ultimate parent of all the content and elements within this document.
A declaration might get a bit more specific and specify the URI (Uniform Resource Identifier) of the DTD being used as shown here:
In the case of a XHTML document, the situation really isn’t much different:
However, do note that the root html element here is lowercase, which hints at the case sensitivity found in XHTML.
There are numerous doctype declarations that are found in HTML and XHTML documents, as shown in Table below.
Welcome to the World of HTML
HTML really isn't so hard!
Soon you will ♥ using HTML.
You can put lots of text here if you want. We could go on and on with fake text for you to read, but let's get back to the book.
- This example misses important tags, doesn’t specify encoding types, has a malformed comment, uses inconsistent casing, doesn’t close tags, and even uses some unknown element foo. - However, this will render exactly the same visually as the correct markup previously presented, as shown in Figure: - Now if you look at the parse tree formed by the browser, you will note that many of the mistakes appear to be magically fixed by the browser: