473,695 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why I Seldom ASK

1 New Member
I browse the internet looking for help, but all I do is read it, and try to figure it out by my own pitiful, worthless, uneducated self. Why? Because of the following link to one of your pages found in my recent search:

http://www.thescripts. com/forum/thread664634.ht ml

The responses to this person's post - calling them a "troll" for daring to ask the question at more than one forum, and with strong sneering insinuation calling them retarded and stupid and lazy and uneducated for not learning on their own all by themselves pretty much sums it up.

I was looking for info on exactly what they were asking. And I didn't get it here. Why?: Because every single answer to that post ridiculed. I am trying to find out why the ending tags are now written as <br /> instead of </br> which may not show up in this sentence if this posting form allows html codes, and I am too stupid to figure it out. So, in case it doesn't show up, I am talking about a left arrow bracket followed by "br" or "div" etc., followed by a space then a forward slash then a right arrow bracket. It used to be a left arrow bracket, followed by a forward slash then the "br" then the right arrow bracket.

Why the change. I gathered by the mean replies above that it has something to do with XHTML and that it is scorned. And yet, I see it in every code I look at now. Oh and by the way, I suppose I should GET OFF THE WWW because OBVIOUSLY the WWW was created ONLY for NERDS and GEEKS and the rest of us can just head south, we have NO RIGHT to try to be creative with our own stuff because EVERYONE KNOWS ONLY CORPORATE AMERICA gets to own the WWW and the DATA and ENTERTAINMENT and the CONTENT provide therein, including the MEANS to create that content, right?
Sep 9 '07 #1
6 1388
drhowarddrfine
7,435 Recognized Expert Expert
Because of the following link to one of your pages found in my recent search:
Sorry for the misunderstandin g but you are blaming the wrong people. That forum is a link to the USENET group 'comp.*' and not posts on "TheScripts " forum. I am responding quickly but haven't read that thread. In any case, you wouldn't find such a rude response here.
Sep 9 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
The <br> tag was changed to <br /> because xhtml is a reformulation of xml. In xml, all elements are required to be closed. <br /> is a self-closing tag, meaning there is no closing tag because it takes no attributes and contains no other elements.

If you ever see it in html, it is incorrect usage. If you ever see <br> in xhtml, that is also incorrect usage. However, most people who write xhtml markup are actually serving it as html. Using xhtml syntax does not mean anything if the server is set to serve "text/html" and, in most cases, the coder is unaware it is or can't change it because his host won't let him.

For that reason, <br> will work in their xhtml because the browser thinks it IS html. In addition, browser are required to make the best of markup served them. So, if the browser see <br /> in html, it makes the best of it and guesses at what the author wanted.
Sep 9 '07 #3
JeremyMiller
69 New Member
The <br> tag was changed to <br /> because xhtml is a reformulation of xml. In xml, all elements are required to be closed. <br /> is a self-closing tag, meaning there is no closing tag because it takes no attributes and contains no other elements.

If you ever see it in html, it is incorrect usage. If you ever see <br> in xhtml, that is also incorrect usage. However, most people who write xhtml markup are actually serving it as html. Using xhtml syntax does not mean anything if the server is set to serve "text/html" and, in most cases, the coder is unaware it is or can't change it because his host won't let him.

For that reason, <br> will work in their xhtml because the browser thinks it IS html. In addition, browser are required to make the best of markup served them. So, if the browser see <br /> in html, it makes the best of it and guesses at what the author wanted.
Thanks. That was informative and I consider myself fairly knowledgeable about this stuff. I have a follow up question, though, if the server sends "text/html" but the document's doctype is defined as XHTML, doesn't the doctype override the "text/html"? It's my thinking -- and correct me if I'm wrong -- that the "text/html" sent just tells the browser the underlying type so that it knows which program should interpret what follows and that once it's received, the program (in this case the browser) will interpret according to the document's internal structure.
Sep 10 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
The http header overrides all and the browser will ignore the doctype after receiving the http "content-type".
Sep 10 '07 #5
JeremyMiller
69 New Member
The http header overrides all and the browser will ignore the doctype after receiving the http "content-type".
Interesting. I didn't know that. Thanks. I wonder if there are any browsers where that doesn't hold.
Sep 10 '07 #6
drhowarddrfine
7,435 Recognized Expert Expert
I believe it's in the http spec so they shouldn't.
Sep 11 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

36
2012
by: Antoon Pardon | last post by:
I'm rather new at this, so I don't know how I should introduce this, nor whether these ideas are worth much but here goes. What I would like to change is access to variables on an intermediate scope. Given the following example def fun_1() a = some_value
25
3327
by: Digital Puer | last post by:
I'm looking at some software development jobs whose listings require C++ experience. My history is that I have a strong C background, and a few years of C++ from undergrad classes. I've been working with Java since 1997 and consider myself a decent Java programmer. Now, if I apply for C++ jobs, do you think it's important that I know the fine details of C++? or would a strong, generalised knowledge of object-oriented programming be more...
136
9372
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
15
1825
by: jiverbean | last post by:
Dear group members, I cam across a glitch in Javascript and I don't know how to solve it elegantly. I have an array with strings of German words: profile = "Fröhliches Fräulein"; Because HTML doesn't or didn't allow some of these characters, I wrote:
57
11755
by: Eric Boutin | last post by:
Hi ! I was wondering how to quickly and safely use a safe scanf( ) or gets function... I mean.. if I do : char a; scanf("%s", a); and the user input a 257 char string.. that creates a problem.. same for gets.. even if you create a char array that's 99999999999999 char long.. if the user input something longer it will still be a bug.. and I don't want
22
4020
by: none | last post by:
If I need to add up all integers in a line (they're separated by space) How can I do that?? e.g. input : 1 4 5 2 3 sum : 15 input : 2 3 sum: 5
23
3064
by: VB Programmer | last post by:
Variable scope doesn't make sense to me when it comes to Try Catch Finally. Example: In order to close/dispose a db connection you have to dim the connection outside of the Try Catch Finally block. But, I prefer to dim them "on the fly" only if needed (save as much resources as possible). A little further... I may wish to create a sqlcommand and datareader object ONLY if certain conditions are met. But, if I want to clean these up in the...
2
1101
by: Z D | last post by:
Hello, I need to support multiple languages in a product package being developed in both ASP.NET (vb.net) and WinForm .net (c#). I was wondering if there are any best practice guides, application blocks, resources, tutorials, or just general advice that someone could recommend to get me started. What is the best way to approach a multi-lingual asp.net application? Same
115
6232
by: LurfysMa | last post by:
Most of the reference books recommend autonum primary keys, but the Access help says that any unique keys will work. What are the tradeoffs? I have several tables that have unique fields. Can I use them as primary keys or should I define an autonum primary key? One table has information about the 50 states in the US. The table looks like this:
0
8635
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8574
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9116
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8990
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8850
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8829
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4342
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4580
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1977
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.