# Svg in rhtml

**URL:** <https://www.ruby-forum.com/t/svg-in-rhtml/88570>\
**Category:** Ruby\
**Created:** [March 12, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/svg-in-rhtml/88570 "2007-03-12T20:00:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanan\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Post date:** [March 12, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/svg-in-rhtml/88570/1 "2007-03-12T20:00:28Z")

</div>

hello

Is there a way to embed svg file in rhtml page. I tried to use the  
object  
tag but it never loads

Thanks

---

<div class="post-metadata">

**Author:** ![Hanan\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Post date:** [March 12, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/svg-in-rhtml/88570/2 "2007-03-12T20:15:30Z")

</div>

Hanan M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a way to embed svg file in rhtml page. I tried to use the object  
> tag but it never loads

if your page is written as xhtml page (then xml), it’s possible with  
rhtml), no prob to embed an svg directly (inline), see an example here :

[http://81.57.96.20/SVG/inline\_1\_portable.xhtml](http://81.57.96.20/SVG/inline_1_portable.xhtml)
