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

  • Home
  • SEARCH
  • 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 8943571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:48:26+00:00 2026-06-15T11:48:26+00:00

We have a client that would like us to use CSS3 namespaces. However, everything

  • 0

We have a client that would like us to use CSS3 namespaces. However, everything I’m finding indicates that it is specifically used for styling XML and not HTML. Can anyone validate using it for CSS/HTML or clarify how you would do this? What are the negatives of following this method?

@namespace toto "http://toto.example.org";

toto|Product {
    display:block;
}

toto|Code {
    color: black
}

http://www.w3.org/TR/css3-namespace/

http://onwebdev.blogspot.com/2010/04/css3-namespace-selectors.html

  • 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-06-15T11:48:29+00:00Added an answer on June 15, 2026 at 11:48 am

    Can anyone validate using it for CSS/HTML or clarify how you would do this?

    Major browsers use a default namespace of http://www.w3.org/1999/xhtml which is XHTML’s namespace, even for HTML, and go about their business. Technically though, since HTML isn’t XML, there isn’t a point to this unless you consider that XML-based languages like SVG and MathML can be embedded within HTML anyway.

    If your client wants to make use of CSS namespaces, they’ll probably need to provide you with something that’s written in a language that has some sort of namespacing mechanism that is compatible with CSS. It is meaningless to try and apply this knowledge to HTML itself because

    • HTML wasn’t exactly designed to be namespaced in the first place
    • browsers already assign a default namespace to (X)HTML documents that you can’t access explicitly anyway

    More information can be found in this answer.

    To answer your question title, the document language does not necessarily have to be XML-based:

    Besides terms introduced by this specification, CSS Namespaces uses the terminology defined in Namespaces in XML 1.0. However, the syntax defined here is not restricted to representing XML element and attribute names and may represent other kinds of namespaces as defined by the host language.

    The CSS Namespaces spec borrows terminology from XML Namespaces as a convenience simply because CSS is most commonly applied to HTML and XML documents (and even then, more people use XSL(T) with the latter instead).

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

Sidebar

Related Questions

I have a client that would like to use SkyDrive as a cloud storage
I have a request in from a client that would like one of their
I have a client that would like to add a feature to their application
I've got a client that would like to use Magento's web services API to
We have a rails api that we would like to use to send notifications
I have a javascript array of objects that I would like to use to
I have some simple GWT client code that I would like to test using
I have this line: $(#clients-edit-wrapper).height($(window).height()-150); I would like to apply that height function to
I would like to know if there is any possibility that I can use
I have a Java Swing application client that I want to use to consume

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.