redarrow Posted September 29, 2006 Share Posted September 29, 2006 [b]edited[/b]thanks everyone cheers.hi there all hopes ok.i have a problam i use the following doctype.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> i can not use the [code]<br>[/code] syntex as it is not valid i am currently using <p>but what do i do to use[code] <br> [/code]with the doctype i use thank you.this is a html quistion but it's also a php quistion as the doctype is used within html and phpadvance thank you.i tried the[code] <br><br/> [/code]but no joy can you help cheers. Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/ Share on other sites More sharing options...
JasonLewis Posted September 29, 2006 Share Posted September 29, 2006 do you have to use DOCTYPE? in all my websites i never used doctype. you could try <br /> but i dunno. Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100784 Share on other sites More sharing options...
redarrow Posted September 29, 2006 Author Share Posted September 29, 2006 you goto use doctype to get on page one of google so i got to.for a meta tag hack. Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100786 Share on other sites More sharing options...
HuggieBear Posted September 29, 2006 Share Posted September 29, 2006 Why can't you use [b]<[/b][b]br>[/b] I thought that was valid in HTML Strict.Try [b]<br [/b][b]/>[/b] It might be that it wants a closing tag.According to this line in the DTD, it's fine as text markup...[quote]<!ENTITY % special "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">[/quote]RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100796 Share on other sites More sharing options...
redarrow Posted September 29, 2006 Author Share Posted September 29, 2006 nope the only way you can use < br > is within a set css < p > very wieredexample only this will get errors[code]<?php ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <html><head>p.test{margin: 1px: auto;color: blue;text-weigth: 500px;background-color: black;}<title>hi ya</title></head><body>this brake does not work<br>this line with brake works<p class="test">hi there i am <br>reddarrow</p></body></html>[/code]madness what to do to get a brake before a table i got no idear lol Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100799 Share on other sites More sharing options...
AdRock Posted September 29, 2006 Share Posted September 29, 2006 Dunno if it's anything to do with this but if you're using css inline then you should start with <style type="text/css"> and end with </style> and put the css in between Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100802 Share on other sites More sharing options...
HuggieBear Posted September 29, 2006 Share Posted September 29, 2006 [quote][code]<title>hi ya</title></head><body>this brake does not work<br>this line with brake works<p class="test">hi there i am <br>reddarrow</p></body></html>[/code][/quote]I hate to say it, but that's correct. You should always have paragraph tags around your text.RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100804 Share on other sites More sharing options...
redarrow Posted September 29, 2006 Author Share Posted September 29, 2006 so this dosent exist then were the brake is.[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <html><head><title>hi ya</title><style type="text/css">p.test{margin: 1px: auto;color: blue:text-weigth: 500px;background-color: black;}</style></head><body><br><p class="test">hi there i am <br>reddarrow</p></body></html>[/code]error[code]Line 29 column 3: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag.<br>[/code] Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100807 Share on other sites More sharing options...
redarrow Posted September 29, 2006 Author Share Posted September 29, 2006 solved found a way around it[code]<?php echo"<br><br>";?>[/code] Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100809 Share on other sites More sharing options...
redarrow Posted September 29, 2006 Author Share Posted September 29, 2006 is there any way to get the wc3 not to valadate html you want to show but dont wont it valadated but not using the <!-- --> becouse that stop showing the information i want the same but not to valadate the information.or will i have to use a image cheers.[code]<!--<div class="info">Doctype Example</div><p class="info">When using html and css you must use a doctype at the beging of your code. <br><br>Doctype Example<br><textarea class="example_two" ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> </textarea>-->[/code] Link to comment https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100893 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.