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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:56:04+00:00 2026-06-16T05:56:04+00:00

Is something like… <script type=text/html id=this-content1> <h1>This Header Info One</h1> <p>This content one. .

  • 0

Is something like…

<script type="text/html" id="this-content1">
<h1>This Header Info One</h1>
<p>This content one. . .</p>
</script>
<script type="text/html" id="this-content2">
<h1>This Header Info Two</h1>
<p>This content two. . .</p>
</script>

…and using jQuery to swap out the content based on a selector good practice in today’s standards?

I am just getting into the use of script type=”text/html”… to allow dynamic changes of my content and am finding many ways to do this. Is there a source that might explain the direction this is going and if any standardizing of this practice.

I see code like…

<div class="thumbnail">
            <# if ( data.uploading ) { #>
                <div class="media-progress-bar"><div></div></div>
            <# } else if ( 'image' === data.type ) { #>
                <img src="{{ data.size.url }}" draggable="false" />
            <# } else { #>
                <img src="{{ data.icon }}" class="icon" draggable="false" />
            <# } #>
        </div>

…nested in a script type=”text/html” tag and really have no idea why it is written this way. Also have just wet my beak in backbone and this looks to be a little heavy if just looking to add content swapping in one page.

  • 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-16T05:56:05+00:00Added an answer on June 16, 2026 at 5:56 am

    According to the HTML5 spec for the script tag, it’s totally fine to use <script> with a type attribute set to any valid MIME type. That includes MIME types like text/html or text/plain.

    According to the HTML4 spec for the script tag, it’s not quite fine:

    “There are two types of scripts authors may attach to an HTML
    document: Those that are executed one time when the document is loaded
    [and t]hose that are executed every time a specific event occurs”

    You don’t need backbone for templating. You can use e.g. jQuery or my personal favorite, Mustache.js.

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

Sidebar

Related Questions

Something like this: from Tkinter import * root = Tk() but = Button(root, text
Something like new Div { new A{Href = test, Content = link}, new P(text),
Something like this: http://perl.plover.com/yak/regex/samples/slide083.html In other words I want to match successfully on {
Need something like this (for future loaded html to page!): $(document).on('ready', 'a', function(){ $(this).after('it
I'd like do something like this: $type = int; $casted = ($type)$value; This doesn't
Something like this, would make the widget appear normally: Label(self, text = 'hello', visible
Something like this is in a file called header.php which all files on my
Something like this might had worked <%= Html.RouteLink(, new { controller = Article, action
Something like this: _declspec(align(16)) float dens[4]; //Here the code comes. F32vec4 S_START, Pos, _Vector
Something like? <fmt:formatDate value=${event.starttime} type=both/>

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.