Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
Old March 29th, 2010, 09:28 PM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
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.
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 02:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Đ 2013 John Wiley & Sons, Inc.