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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:43:25+00:00 2026-06-08T08:43:25+00:00

I put together a jQuery plugin that changes the aspect of the text in

  • 0

I put together a jQuery plugin that changes the aspect of the text in an HTML container and gives it an LCD-like appearance. Each character converted by the plugin is constructed with several square blocks (“bricks” as I’ve called them), absolutely positioned in a parent container – one container for each character converted. The bricks are in fact <b> tags with a display: block rule applied to them.

I’ve used them instead of <div> in order to reduce the amount of markup, but I want to know if there are downsides to this approach that I’m not aware of.
You can see the plugin in action here: Digitize

  • 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-08T08:43:27+00:00Added an answer on June 8, 2026 at 8:43 am

    It makes little difference, but perhaps a div or span would be more appropriate due to their lack of semantic meaning.

    You aren’t saving much here as the markup is built dynamically, so the length difference between b and div or span isn’t significant in any way.

    The HTML spec says:

    The b element represents a span of text to which attention is being
    drawn for utilitarian purposes without conveying any extra importance
    and with no implication of an alternate voice or mood, such as key
    words in a document abstract, product names in a review, actionable
    words in interactive text-driven software, or an article lede.

    The b element should be used as a last resort when no other element is
    more appropriate. In particular, headings should use the h1 to h6
    elements, stress emphasis should use the em element, importance should
    be denoted with the strong element, and text marked or highlighted
    should use the mark element.

    But on the other hand, it really makes no difference when producing it using JS other than neatness. Twitter bootstrap horribly uses i for icons for instance!

    The ‘correct’ way to do this by the way is to use the Shadow DOM – it’s pretty brandspanking new, but it allows you to hide away implementation details in the same way that a select tag does (i.e. html just has select and option elements, but behind the scenes there is more going on).

    For a demo, check out http://adobe.github.com/web-platform/samples/css-regions/shadow-dom/ in a new browser. If you use Chrome, then turn on Developer Tools Experiments in chrome://flags/, then in the inspector menu turn on the View Shadow DOM option. This will let you see what’s happening here.

    In short, you can make elements that are isolated from everything else and essentially invisible. You can style them as per usual, but can also isolate them from the rest of the CSS. They behave just like regular ones, except that they are not addressable in the normal way.

    If I were making this plugin, I’d use Shadow Dom where I could, with a fallback to span or b or whatever, mainly just because cool stuff is cool!

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

Sidebar

Related Questions

I have put together an image scroller using jquery, like this function rotateImages(whichHolder, start)
I'm learning jQuery-UI, and would like to put together a good looking page, so
i put 2 jquery plugin together inside a webpage. Conflict happen between the 2
I'm attempting to put together a simple jQuery product filter for a store that
I'm trying to put together some jQuery code that will add form elements (input
I've put some jQuery together to change the highlighting on a container (default red,
I am trying to put a layout together with jquery-ui-layout and can't overcome the
I put together this quick carousel that I'm using to cycle through different divs
I put together a mobile development stack that is almost entirely using Javascript on
I've been messing around with jQuery plugin code and I'm trying to put all

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.