Did you know you can add HTML to your labels?

labels
design
aia

#4

hello Mika… I’ve a problem with html in label: the tags bold, underline and italic are respected, but not the br/ tag
What have I to do for insert a newline in the text?


#5

a new line is this code. <br>
If you install your apk on your device you will see a line break :slight_smile:


#6

Sorry Mika but it doesn’t … This is what I see on my device after installing app


#7

You have used <br/> instead of <br>
The tag <br/> doesn’t exist in HTML


HTML Format Reference:
http://www.w3schools.com/html/html_formatting.asp

I’m not sure if AppInventor supports all of this tags, but it could be a great feature to add if not


#8

This is the same item with tags modified… The result is the same

It’s not good to see …


#9

Try this: \n
Maybe this can help you.
Can you share the aia file?


#10

with \n no changes

this is the aia file
CRALLupiae.aia (196.4 KB)


#11

I guess you forgot to check HTML format on the design page. See the image below.

Edit: Sorry. I didn’t see your post that you have already checked HTML format. :blush:


#12

Mmm, try to add a space before and after the tag <br>
Sometimes it could be interpreted as part of the text and not as a tag


#13

@barreeeiroo good suggestion. i think that might be the problem. try and space out both opening and closing tags.
Best Regards!
Albert


#14

Sorry my friends … it doesn’t goes … the string <br> is showen instead of a newline …
The bold and italic tags run perfectly …
Has anybody tried on own equipment ?


#15

No other suggestions?


#16

Can you share your .aia file? Maybe there is other block that is conflicting with it


#17

Using the html code, the color can be brought to the label section.


#18

can we add images inside label


#19

Only as unicode


#20

tag for line break and dont need to use 20% for space


#21

Please Use Blocks and add text to a Text block like this. I think it will work.
f


#22

Is p and pre Tag is supported Here.


#23

what about checking the documentation of the label component to find it out yourself?
Taifun