Kodular HTML Guide

I don’t think It supports

1 Like

Nice guide

2 Likes

Good Guide! Will help me a lot!

1 Like

Thank you Nisarga. If you have any suggesions, make sure to tell me

1 Like

Will Sure!

Excellent work @rizu, really great. This guide of html tags is pretty much useful while building apps. This collection helps me. I have bookmarked it.

2 Likes

As a note, <b> and <i> were deprecated in HTML 4. So you should use <strong> and <em>

Also, <i> is now used as a tag for web icons, so it shouldn’t be used for Italic text anymore.

1 Like

first of all congratulations. then I don’t know if you have noticed in the labels and in the notifiair emojis are also inserted in this way:
“& # x1F60B;”
using the codes you can find sites like this:

<ul> and <li> are usable in label. However there is no padding between the bullet and rest of the text so it looks unpleasant.

2 Likes

how to set html text algin center,left,right

You can’t but try using &nbsp till you get what you want. Hope it helps​:grinning:

Hi everyone! I’m still a begginer
I was looking for my matter and i’ve not found anything good for me, so sorry in advance if i didn’t it well.

I’d like to know if it’s possible to code font color as a variable value, for an example:
Let’s supoose i want to show different text colors in a label in different times, then i thought something about that:

I hope i rightly did my question, if not, i ask for sorry
Regards!

In html you can use a color code to change the text color
For example:
image
(I dont know if this works on kodular, but you can try)

Kodular uses HTML4 the <span> tag is introduced in HTML5.

Use this
(remove the 3 number blocks and use your variables)

Thanks for your answers.

I’m so sorry, but i wasn’t enough clear when asked for help.

I need something like this:

All three texts in the same label. I thought this

So, any tip about blocks or whatever you think appropiate, will be warmly appreciated
Thanks in advance!
Regards.

Thanks, it’s a good tip for me!

Here is my approach:

We can use <font color="hex_value"></font> to add color.
Here, it loops through the list of strings, formats and joins them together.


This converts the RGB value to hex value with the hash #

Convert decimal to hexadecimal. If the hex is a single digit then add a zero in front of it.
blocks (1)

Finally, use the method:
blocks (6)

Well of course, if you have three strings only then you can simply join them together with the rgbToHex and toHex method, like this:

3 Likes

Wow what a tip! That was great! :clap: :clap:
I’ve learned a lot in coding here now!
Thanks lots!

1 Like

@WatermelonIce <font> doesn’t work (tested on companion)