Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1093223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:47:49+00:00 2026-05-16T23:47:49+00:00

Possible Duplicate: Do I really need to encode '&' as ' &' ? I

  • 0

Possible Duplicate:
Do I really need to encode '&' as ' &' ?

I know that W3C recommends to “use “&” (ASCII decimal 38) instead of “&” to avoid confusion with the beginning of a character reference”, and that tidy warns of an “unescaped & which should be written as &” but, these warnings not withstanding, is it valid to write (say) “Tiffany & Co.” instead of the more cautios “Tiffany & Co.”?

I know the example above renders as expected (i.e., the same) in all browsers I’ve tried, but this is a syntax question for the language lawyers out there. It looks to me that, as long as the expression is not of the form ” &blah; “, it should be legitimate. (Same with using angle brackets if you don’t write ” <blah> “.)

As an aside, the fact that skipping </li>’s is not deemed a warning, while unescaped &’s are, speaks volumes of the inconsistency of HTML syntax. In fact, if we’re going to rely on the parser’s smarts, leaving out a </ul> (for instance) should be OK if the (unfinished) list is the very last part of the document: no </ul>, no </body>, no </html>… no possible ambiguity, right?

PS: I just found out that (sensible) unescaped angle brackets yield no warnings in tidy, but are detected as errors by W3C’s validator, while unescaped ampersands give warnings in both places. Go figure…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:47:50+00:00Added an answer on May 16, 2026 at 11:47 pm

    Invalid? Yes. A free ampersand inside HTML markup will result in a parser error.

    Can modern browsers ignore the error and parse correctly? Most likely.

    But it is malformed HTML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Are string.Equals() and == operator really same? I know that in c#
Possible Duplicate: Do I really need to do mysql_close() Maybe the first question to
Possible Duplicate: How to catch exceptions I have not really had to use try
Possible Duplicate: Do I really need version control? My question is simple enough. When
Possible Duplicate: C++ String Length? I really need a help now. How to accept
Possible Duplicate: A Singleton that is not globally accessible Do you know a good
Possible Duplicate: What does 'foo' really mean? I hope it is not the most
Possible Duplicate: && operator in Javascript In the sample code of the ExtJS web
Possible Duplicate: private members in python I've got few variables I really want to
Possible Duplicate: Why there is not a comprehensive c archive network? Everyone knows that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.