Automatic filling product name

Asked

Viewed 61 times

0

I would like the product name to be automatically pulled into some parts of the text.

For example if the product name is: Black mug, I would like in the text when I speak of the product to automatically pull the name, because there are several colors of the product but their text is standard, doing this would not need to be editing text by text :D

it is possible to do this in html?

  • In html it is possible, but you will need to Javasscript

  • Can you show some example of what you are looking for? Because the stack overflow suggests that authors place some code snippets to help who will respond...

  • 2

    it is possible to do this in html? I believe that’s the answer... answer: http://prntscr.com/naqi0s :/

  • 1

    The question lacks many details, in the current way there is no way to understand the problem. And this type of text formatting seems to make more sense in the application backend, since the content will already be delivered ready and indexed correctly.

3 answers

3

Makes CSS. Gambiarra by gambiarra, do with style

.p1::after{content:"gambiarra";}
Não há a necessidade de fazer essa <span class="p1"></span>,
porque <span class="p1"></span> só deve ser feita por
especialistas em <span class="p1"></span>   Kkkkkk

1

In pure HTML, no, you’ll need to use some other tools, like Javascript, and also, you’ll have to take that information from somewhere, a database, for example.

It all still depends on your need.

  • And how I would do that?

  • It’s actually a question well broad, there are many ways to get this result, my tip is that you try to get from the basics, HTML/CSS/Javascript, so you can get to know your needs better. .

0

No, only with HTML is not possible. You need at least one Javascript to pull the texts from another location, but the recommended is to pull the data from a given product of the database.

Ideal is to sweat a combination of technology such as HTML, Javascript, Database and a backend language

Browser other questions tagged

You are not signed in. Login or sign up in order to post.