| | |
Line breaking...
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2007
Posts: 19
Reputation:
Solved Threads: 0
•
•
•
•
<br/> is an xhtml version of the standard <br> tag but I have never seen </n>. The answer to the compatibility is no it won't make it anymore compatible only if you have got xhtml set in your doc type.
Sorry for not being specific enough about the \n... I was referring to the ASCII control character for a NewLine... \r would be Return Carriage and \t would be Tab... etc. etc..
What is the difference between the control character and the linebreak tag?
The control character linebreaks \n or \r will be shown in your markup when you view it as plain text. They can be used to organise your code better.
When it's rendered as HTML, \n, \r linebreaks aren't shown atall. You have to use <br> or <br/> or <p></p> etc to show linebreaks in rendered HTML.
When it's rendered as HTML, \n, \r linebreaks aren't shown atall. You have to use <br> or <br/> or <p></p> etc to show linebreaks in rendered HTML.
Last edited by MattEvans; Jan 18th, 2007 at 4:44 am.
Plato forgot the nullahedron..
•
•
Join Date: Jan 2007
Posts: 19
Reputation:
Solved Threads: 0
•
•
•
•
The control character linebreaks \n or \r will be shown in your markup when you view it as plain text. They can be used to organise your code better.
When it's rendered as HTML, \n, \r linebreaks aren't shown atall. You have to use <br> or <br/> or <p></p> etc to show linebreaks in rendered HTML.
The correct form of the br tag is:
Note the space before the /. This makes the tag work (actually fail invisibly) on older browsers.
Single tags without closing tags or closing slashes are deprecated (a fancy word meaning they plan to discontinue it shortly).
So we either have to have tags in pairs:
Or we have to show that the tag has no closing tag with a slash before the closing angle broket.
I think they did this so they could write code checking software which is not ambiguous.
HTML and CSS Syntax (Toggle Plain Text)
<br />
Note the space before the /. This makes the tag work (actually fail invisibly) on older browsers.
Single tags without closing tags or closing slashes are deprecated (a fancy word meaning they plan to discontinue it shortly).
So we either have to have tags in pairs:
HTML and CSS Syntax (Toggle Plain Text)
<li>This is a list element.</li>
Or we have to show that the tag has no closing tag with a slash before the closing angle broket.
HTML and CSS Syntax (Toggle Plain Text)
<hr /> <img src="toon.jpg alt="cartoon of clown with stuffed helicopter" />
I think they did this so they could write code checking software which is not ambiguous.
Last edited by MidiMagic; Jan 24th, 2007 at 2:24 am.
Daylight-saving time uses more gasoline
•
•
•
•
Single tags without closing tags or closing slashes are deprecated (a fancy word meaning they plan to discontinue it shortly).
http://www.w3.org/TR/html4/intro/sgmltut.html
http://www.w3.org/TR/html4/index/elements.html
http://www.w3.org/TR/xhtml1/#h-4.3
Last edited by MattEvans; Jan 24th, 2007 at 11:06 am.
Plato forgot the nullahedron..
I think that tag is between script tag
please check once total code
Thanx,
sree
please check once total code
Thanx,
sree
Thanx,
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
![]() |
Similar Threads
- Table width (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: help: how to make my own forum
- Next Thread: quote
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity create css design development displayimageinsteadofflash dreamweaver drupal emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. templates textcolor theme timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 wordpress xml xsl






