# Hyperlink format

**URL:** <https://forum.servoy.com/t/hyperlink-format/4937>\
**Category:** Classic Servoy\
**Created:** [October 21, 2005, 2:05pm UTC](https://forum.servoy.com/t/hyperlink-format/4937 "2005-10-21T14:05:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [October 21, 2005, 2:05pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/1 "2005-10-21T14:05:32Z")

</div>

The default format for a HTML text hyperlink in Servoy has the ugly blue underlined style…  
How can I define the a:link style in Servoy?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [October 21, 2005, 2:36pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/2 "2005-10-21T14:36:26Z")

</div>

Hi Karel,

You define that style inside the HTML you want to display.  
Just like you do for any other webpage.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [October 21, 2005, 2:57pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/3 "2005-10-21T14:57:02Z")

</div>

> ROCLASI:  
> Hi Karel,
> 
> You define that style inside the HTML you want to display.  
> Just like you do for any other webpage.
> 
> Hope this helps.

Hi Robert,

```auto
	'<head>\n' +
		'<style type="text/css"></style>\n' +
	'</head>\n\n' +

```

Did try this at first.. but the ‘a:link { blablabla’ line just don’t work…

(I use the ‘\n’ to display the HTML a bit nice in some text area fields)

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [October 21, 2005, 3:35pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/4 "2005-10-21T15:35:47Z")

</div>

Hi Karel,

I did some testing. Loose the ‘:link’ and it works.  
When CSS doesn’t work you can always use the old fashioned way of doing things with

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [October 21, 2005, 3:58pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/5 "2005-10-21T15:58:43Z")

</div>

> ROCLASI:  
> I did some testing. Loose the ‘:link’ and it works.

Thanks Robert! That solved it! You’re the best ![:D]( "Very Happy") !

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [November 3, 2006, 3:59pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/6 "2006-11-03T15:59:09Z")

</div>

I have the same pb

I use:

```auto
globals.tp_var10 = "<html>\n"
globals.tp_var10 += "<body>\n"
globals.tp_var10 += '<head>\n'
globals.tp_var10 += '<style type="text/css"></style>\n' 
globals.tp_var10 += '</head>\n' 
globals.tp_var10 += "<a href='#'>toto</a>"
globals.tp_var10 += "</body>\n"
globals.tp_var10 += "</html>\n"

```

‘toto’ has the ugly blue underlined 😕

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [November 3, 2006, 4:18pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/7 "2006-11-03T16:18:16Z")

</div>

You should start the body() after closing the head().

So, change your code in:

```auto
globals.tp_var10 = "<html>\n"
globals.tp_var10 += '<head>\n'
globals.tp_var10 += '<style type="text/css"></style>\n'
globals.tp_var10 += '</head>\n'
globals.tp_var10 += "<body>\n"
globals.tp_var10 += "<a href='#'>toto</a>"
globals.tp_var10 += "</body>\n"
globals.tp_var10 += "</html>\n"

```

that’ll work

---

<div class="post-metadata">

**Author:** ![chgog](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chgog](https://forum.servoy.com/u/chgog)\
**Post date:** [November 3, 2006, 7:02pm UTC](https://forum.servoy.com/t/hyperlink-format/4937/8 "2006-11-03T19:02:26Z")

</div>

oh yes ! sorry !

Thanks Joas.
