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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:41:10+00:00 2026-06-05T12:41:10+00:00

After accidentally using a CSS selector in an HTML template I started wondering if

  • 0

After accidentally using a CSS selector in an HTML template I started wondering if there is a template language or an extension to one that would allow this syntax, and whether it would be useful. So instead of writing this:

<div id="mydiv">
  <div class="first column">1</div>
  <div class="second column">2</div>
</div>

We could write it like:

<div#mydiv>
  <div.first.column>1</div>
  <div.second.column>2</div>
</div>

Does something like this exist?

  • 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-05T12:41:12+00:00Added an answer on June 5, 2026 at 12:41 pm

    Maybe you mean something like Jade?

    It is an HTML preprocessor.

    The following:

    doctype 5
    html(lang="en")
      head
        title= pageTitle
        script(type='text/javascript')
          if (foo) {
             bar()
          }
      body
        h1 Jade - node template engine
        #container
          if youAreUsingJade
            p You are amazing
          else
            p Get on it!
    

    Will be translated to:

    <!DOCTYPE html>
    <html lang="en">
      <head>
        <title>Jade</title>
        <script type="text/javascript">
          if (foo) {
            bar()
          }
        </script>
      </head>
      <body>
        <h1>Jade - node template engine</h1>
        <div id="container">
          <p>You are amazing</p>
        </div>
      </body>
    </html>
    

    Also, it is not exactly what you’re asking, but you may like Zen Coding. It is a plugin to code HTML at high-speed. GIF showing what it does:

    zen coding animated gif

    It’s basically:

    1. Write pseudo-html.
    2. Hit the shortcut.
    3. Get full HTML.
    4. ?????
    5. Profit!

    You should check with your editor if it can support this. FWIW, I use this in VIM and it’s awesome.

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

Sidebar

Related Questions

After almost two years of using DVCS, it seems that one inherent flaw is
How would one go about implementing a who's online feature using PHP? Of course,
I accidentally deleted a table in my mysql database. After that I've restored this
After following the RoR getting started tutorial, I added another model as: $ rails
If using Firebug, we can click on the HTML tab, and click to expand
I got my application working Awhile back, but after completely and accidentally deleting it,
I'm currently completing an assignment that involves using multithreading and multiprocess programming for the
I am working with some data that another person recorded using the OpenNI recorder
I would like to get started with developing NFC apps for android. I have
I discovered almost accidentally that my machine was sending and receiving UDP packets to

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.