E-mail List Archives
Re: declare the language in spans for Hebrew - left to right? Right to left?
From: Sandy Feldman
Date: Jun 16, 2021 10:45AM
- Next message: Amanda Rush: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- Previous message: glen walker: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- Next message in Thread: Amanda Rush: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- Previous message in Thread: glen walker: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- View all messages in this Thread
Hey all,
<span lang="he" dir="rtl">××× ×¤×¡× ×ª×¨: ×××¨× ××ר</span>
At the piano: Aharon Lazar
so - this looks good ... wondering how it sounds!
thanks again,
Sandy
On 2021-06-16 12:00 p.m., glen walker wrote:
> You are not coding in an RTL language. You are coding in HTML, which is
> LTR, so the <span> will not change. Open <span> tag first, then the
> contents, then the close </span> tag.
>
> It's the contents in the <span> that is RTL. You will probably want to set
> the DIR attribute to "RTL" on the contents.
>
> https://www.w3.org/TR/html53/dom.html#the-dir-attribute
>
> I'm not sure RTL will work on inline elements. I know it works on block
> level elements so you might need a <div> instead of a <span>
>
>
> On Wed, Jun 16, 2021 at 9:11 AM Sandy Feldman < <EMAIL REMOVED> >
> wrote:
>
>> hey all,
>>
>> I am working on a web page that includes Hebrew phrases. I want to
>> declare the language in spans, but since the language goes right to left
>> does the span start on the left or the right?
>>
>> Residence / </span>×ת××ת<span lang="he">
>>
>> or
>>
>> Residence / <span lang="he">×ת××ת</span>
>>
>> thanks so much!
>>
>> --
>> Sandy
>> sandyfeldman.com
>>
>> >> >> >> >>
> > > > --
Sandy
sandyfeldman.com
- Next message: Amanda Rush: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- Previous message: glen walker: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- Next message in Thread: Amanda Rush: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- Previous message in Thread: glen walker: "Re: declare the language in spans for Hebrew - left to right? Right to left?"
- View all messages in this Thread