|
|||||||
| HTML Discussion and technical support for building, using and deploying HTML sites. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have validated code and found that there are some mistakes after validation:
PHP Code:
|
|
#2
|
|||
|
|||
|
<p>My address</p>
<p> My text1</p> <p> NY25689 </p> it will automatically break it..no need for <br /> or if you really want it you can make something like this. <p>My address</p> <br /> <p> My text1</p> <br /> <p> NY25689 </p>
__________________
My mother's menu consisted of two choices: Take it or leave it. |
|
#3
|
|||
|
|||
|
I have problem that p means paragraph. So, it is space between p tags and It should be My text1 within p. In other case it will be too much space.
There is also error when I put: <p > </p> Is this wrong space when I implement validation? Last edited by toplisek; 06-04-2007 at 03:59 AM. |
|
#4
|
|||
|
|||
|
I have at the top xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> |
|
#5
|
||||
|
||||
|
You've something else going on there. Please post the URL.
__________________
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.” —Tim Berners-Lee, W3C Director and inventor of the World Wide Web |
|
#6
|
|||
|
|||
|
Sorry URL is not there as it is testing
|
|
#7
|
||||
|
||||
|
I'm sorry then. Everything that you have posted is valid as it appears.
__________________
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.” —Tim Berners-Lee, W3C Director and inventor of the World Wide Web |
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
||||
|
||||
|
Quote:
<p>This is a sentence</p> <p> </p> <p>And this is another sentence. The invisible "<p> </p>" acts as a vertical spacer... and this is incorrect use of the tag.</p> Try this instead: In your CSS: p {margin:14px 0 6px 0} This creates 14-pixels margin on the TOP of every/any "<p>", zero-pixels right and left, and a 'safety margin' of 6-pixels margin-bottom. Adjust according to needs and appearance. p {margin:14px 0 6px 0} = p {margin:TOP - RIGHT - BOTTOM - LEFT} Why is "<p> </p>" incorrect? Screen readers correctly identify this as 'a paragraph' but there is no content. No text. -How is that 'bad' (in error)? -You're not blind, are you? As a seeing-person, -if you bought a newspaper or book/magazine and got it home only to discover that whole entire pages inside are 100% BLANK, -no text... -wouldn't you be upset or at least, a little ...confused?? THAT is what an "empty <p>" is to a text-to-speech/text-to-braille reader for the blind reads this as.. ![]() Another way for 'special use' of a <p> that requires line-breaks ("<br />") is this: <p style="margin:3px 0 3px 0;"> My address<br /> My text1<br /> NY25689 </p> By stripping out the default or otherwise-stated margin value (I used margin:14px 0 6px 0), you get nice, tight text instead of the 14-px top and the 6-px bottom... I'd opt for a class="this" HTML: Quote:
Quote:
__________________
Help Save Ana My Portal: I Build WebPagesPricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html AUP: http://www.jupitermedia.com/corporate/privacy/aup.html I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey Internet.com freelancers Last edited by WebJoel; 06-04-2007 at 01:08 PM. |
|
#10
|
||||
|
||||
|
You might consider using <address> instead of <p> for that to be a little more semantically correct. It also gives you more tag diversity for styling purposes.
__________________
Help Save Ana Why use Web Standards: Zeldman How (new): Castro How (experienced): Cederholm If you can only get one book and you're already HTML savvy then this is it: stylin' with CSS: A Designer's Guide Charles Wyke-Smith New Riders "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan |
|
#11
|
||||
|
||||
|
Quote:
|
|
#12
|
|||
|
|||
|
lol@ray, it took 10 posts before someone mentioned the <address> tag to solve his address problem
|
|
#13
|
||||
|
||||
|
Quote:
__________________
Help Save Ana My Portal: I Build WebPagesPricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html AUP: http://www.jupitermedia.com/corporate/privacy/aup.html I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey Internet.com freelancers |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|