Wrox Programmer Forums
|
BOOK: Beginning Web Programming with HTML, XHTML, and CSS, 2nd Edition ISBN: 978-0-470-25931-3
This is the forum to discuss the Wrox book Beginning Web Programming with HTML, XHTML, and CSS, 2nd Edition by Jon Duckett; ISBN: 9780470259313
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Web Programming with HTML, XHTML, and CSS, 2nd Edition ISBN: 978-0-470-25931-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2010, 12:49 PM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default I don´t get any wrong message

I jon,

Thanks for the possibility your give us to ask question about your book or the topic

I take your for a week in the library from my University.My goal is start learning web design.

I have the problem that your explain something from the first example (ch01_eg01.htm).
at page 6 you said:

If you want to have one element inside another, then both the element’s opening and closing tags must be
inside the containing element. For example, the following is allowed:
<p> This paragraph contains some <em>emphasized text.</em></p>
Whereas the following is wrong because the closing
</em> tag is not inside the paragraph element:

<p> This paragraph contains some <em>emphasized text. </p></em>

the point is when I try the wrong version it´s walk.I don´t get any wrong message from explorer or mozilla.
I don`t know more what wrong or what right.
I use internet explorer 8 and firefox 3.6.2

I repeat when I tested I don´t get any error message.when I move the <html> tag from the code.IT WALK.It shouldn´t normally.

regard

Alain
 
Old March 29th, 2010, 09:28 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

You didn't see any warnings or errors, because the browsers are very tolerative. Try to validate the following with W3C validation service: http://validator.w3.org/, and you will see the warnings and errors:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
    <title>Title</title>
</head>
<body>
<p> This paragraph contains some <em>emphasized text. </p></em>
</body>
</html>

Last edited by PeterPeiGuo; March 29th, 2010 at 09:32 PM..
 
Old March 30th, 2010, 01:34 PM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Peter .
I was a little bit frustrate and spent one day trying to understand this situation.I haven´t try the validator from W3C but I know it is probably what you say.It means if I have old version from firefox or explorer.It will catch the errors.

thank you again

A Bientot

Alain





Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between $message and $$message? rahulcbr Beginning PHP 1 February 27th, 2007 08:05 AM
Error message is wrong Mitch SQL Server 2000 3 March 17th, 2004 07:11 PM
Right or wrong? ÕÅÃÍ C++ Programming 6 February 27th, 2004 02:27 AM
email message with wrong characters marcrock Flash (all versions) 4 February 8th, 2004 05:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.