Jump to content

Recommended Posts


[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 php

advance 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

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]

Regards
Huggie
Link to comment
https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100796
Share on other sites

nope the only way you can use < br > is within a set css < p > very wiered

example 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

[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.

Regards
Huggie
Link to comment
https://forums.phpfreaks.com/topic/22479-solvedproblams-with/#findComment-100804
Share on other sites

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.