Problem with code - Post ID 185334

User 2073552 Photo


Registered User
1,625 posts

dep·re·cate (dpr-kt)
tr.v. de·pre·cat·ed, de·pre·cat·ing, de·pre·cates
1. To express disapproval of; deplore.
2. To belittle; depreciate.
3. Computer Science To mark (a component of a software standard) as obsolete to warn against its use in the future so that it may be phased out.

Definition and Usage of <br> found on http://www.w3schools.com/html5/tag_br.asp

The <br> tag inserts a single line break.

The <br> tag is an empty tag, which means that it has no end tag.

Differences Between HTML 4.01 and HTML5
None

This is the same for HTML, HTML 4.01 and HTML5. The / end tag is deprecated.
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 103173 Photo


VP of Software Development
0 posts

Ok Jo Ann, Adam just called you out. Are you going to let him get away with that? ;)
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 1948478 Photo


Senior Advisor
1,850 posts

<br> is used in HTML (all versions)
<br /> is used in XHTML

Nothing changed and nothing deprecated!
User 2073552 Photo


Registered User
1,625 posts

I am not calling anyone out... I am saying that by definition the / is not used in HTML 4.01 and HTML5. It is still used in XHTML...

It was once used in HTML and now it is no longer used. Which means it is deprecated in HTML.
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 38401 Photo


Senior Advisor
10,951 posts

lol Scott, Adam and I already discussed this deprecation thing before he made that 2nd post about it being deprecated, so I "thought" he understood the concept of what is and isn't deprecated and who says so, but I was apparently wrong lol.

It's not a dictionary that determines what is and isn't deprecated in HTML it's is the w3 that does. If the w3 doesn't say it's deprecated (and it most definitely does not) then it is not deprecated.

List of HTML Tags showing that they fully state what is and isn't deprecated on it:

<b> Defines bold text STF
<base /> Specifies the base URL/target for all relative URLs in a document STF
<basefont /> Deprecated. Specifies a default color, size, or font for all the text in a document TF
<bdo> Overrides the current text direction STF
<big> Defines big text STF
<blockquote> Defines a long quotation STF
<body> Defines the document's body STF
<br /> Defines a single line break STF
<button> Defines a clickable button STF

Notice that the <br /> tag is not shown as deprecated.

If you're going to quote the statements from the site you need to state what "they" say not what "we as users" interpret it as. It is not "supported" for HTML5 or most HTML versions, but it "is supported" and definitely in use for 4.01 Strict and for XHTML which are both very valid versions of the code as stated below:

Differences Between HTML and XHTML

In HTML the <br> tag has no end tag.

In XHTML the <br> tag must be properly closed, like this: <br />.

So, it may be no longer "needed" for HTML5, but no where on the page of the HTML5 or HTML tag lists or descriptions for the <br> or <br /> tags, does it state that it is deprecated in any way.

Basically in the end it's not a term that you throw around just because "you" feel it is deprecated lol. I'm surprised that no one else called "him" out already on this :P

Now having said all that, I agree that it's not necessary, and I think if people are smart they would use the HTML5 doctype so they don't "need" the closing tag <br /> code as it supports pretty much anything that came before it so you can use any <br> type tag you want to and it's supported and backwards compatible for the older HTML versions. But we can't force them to and telling them incorrect information is going to end up confusing people not helping them if they aren't familiar yet with HTML5 and it's code system :)
User 2073552 Photo


Registered User
1,625 posts

I will agree to disagree... I have wasted enough time on this.

And I would suggest when posting information from a site, you use the most current information. :D
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 38401 Photo


Senior Advisor
10,951 posts

lol since I copied it directly from their website, I did :P
User 2073552 Photo


Registered User
1,625 posts

Just so you know, the website has the coding back to just regular HTML.

What I posted in my previous response was from the most recent build of HTML which is HTML5. And I copied and pasted as well. That is not in my own words. I also provided a link in that post if you wish to take a look.

This will be my last post on this subject. I have stated my position and do not believe this issue warrants further discussion on my part. We can argue two days to Sunday about this, and I do not wish to dedicate that amount of time.
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 38401 Photo


Senior Advisor
10,951 posts

SirAGE wrote:


This is the same for HTML, HTML 4.01 and HTML5. The / end tag is deprecated.


Just so you know... this is the only part of your post that I am even saying is wrong. This was not quoted from their site, this was written by you as it doesn't exist on their site.

Argue or not, doesn't matter to me, I'm just stating the written facts and nothing more.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.