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 6828125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:20:47+00:00 2026-05-26T22:20:47+00:00

I know that < is not used inside an HTML tag. I know that

  • 0

I know that < is not used inside an HTML tag. I know that it is illegal in URIs too. I can deduce that it is also invalid in class or id of an HTML element. I have never seen it used in styles either.

I need to know however if there is any weird special case that < could be entered.

Let me elaborate. I want to match HTML tags in some text and say, throw them away. In this text, < is normally escaped (so written like \<), but I am assuming there could be user input mistake. So, I want to see if I there is ever a chance that such a thing could be a tag:

<.........<......>  <-- the whole thing is a tag

(where the .s could be anything, such as ")

Or could I safely assume the first < was a mistake by the user?


The question sounds a bit too specific, so I’m going to make it a bit more general: What are the characters that absolutely cannot appear inside an html tag?

  • 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-26T22:20:47+00:00Added an answer on May 26, 2026 at 10:20 pm
    <a title="A title with a < less than symbol">My awesome link</a>
    

    Is perfectly valid HTML.

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

Sidebar

Related Questions

Now while I know that you can not perform inheritance like you would in
I know that that is not a question... erm anyway HERE is the question.
I know that the following works but it is not that readable, is there
I know that XSLT does not work in procedural terms, but unfortunately I have
I know that it's not possible to style any given PHP but I do
this is my first question here :) I know that I should not check
Ok, I know that question is not very informative.. Someome feel free to change
I am curious about COM+, DCOM. I know that MSFT does not encourage you
I know that Serialization (Serializable) is not available in the Micro Edition of Java.
I know that an interface does not have a body, just a method definition.

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.