Building an Arabic website for Middle East buyers: what do RTL layout, hreflang and contact details require?

Multilingual
6 min read
Short answer

An Arabic website is not a Chinese or English page run through translation. Arabic is written right to left, so the page needs both lang="ar" and dir="rtl" on the html tag; W3C explicitly advises setting the base direction with the dir attribute rather than CSS. Navigation, breadcrumbs, arrows and table column order mirror as a whole, while model numbers, standard numbers, phone numbers and email addresses stay left to right or they scramble. For search, Arabic pages need their own URLs, linked two ways with the other languages through hreflang. Contact details should state the channels local buyers can use, your time zone and your working hours. Get these right and the Arabic pages read naturally and are correctly recognised by Google and AI assistants as the version for Arabic speakers.

Key points
  • Arabic pages carry lang="ar" and dir="rtl" on the html tag; W3C advises against setting base direction in CSS
  • lang does not imply direction; W3C says direction must always be declared with dir
  • Model numbers, standard numbers, phones and emails must stay left-to-right inside RTL text
  • Google hreflang supports ISO 639-1 language plus ISO 3166-1 Alpha 2 region codes, and each version must list itself and all others

How does an Arabic site differ from a translated one?

The difference is direction and layout: a proper Arabic site mirrors the whole page rather than just swapping in Arabic words. Right-to-left (RTL) means text starts at the right edge of the page and runs leftwards; Arabic, Hebrew and Persian all work this way. For an export website this is more than text direction. The reader’s eye starts at the top right, so the menu, logo, search box, breadcrumbs and “next” buttons all need to swap sides. Many factories’ Arabic pages are produced by a translation plugin swapping words into an English template: the text runs right to left but the layout still runs left to right, punctuation jumps to the start of sentences and arrows point the wrong way. A buyer can tell at a glance that the page was machine-assembled.

The test is simple: open the Arabic page next to the English one. The Arabic version should look like a mirror image of the English page, not the English page in a different font. For example, if a stainless-steel flange maker’s English page has product categories on the left and a spec table on the right, the Arabic page should have categories on the right and the table on the left, with the table’s first column starting at the right.

What does RTL layout require technically?

Technically it comes down to three things: dir="rtl" on the html tag, logical properties in the styles, and a clear rule on what mirrors and what does not. The W3C Internationalization group’s article “Structural markup and right-to-left text in HTML” is clear: when the overall document direction is right to left, add dir="rtl" to the html tag, and do not use CSS to apply base direction in HTML pages, because direction belongs in the markup and must survive even if the stylesheet fails to load. It also warns not to assume that a language declaration implies direction: lang and dir are declared separately. In practice, styles should use logical properties such as margin-inline-start rather than margin-left, so one set of components lays out correctly in both directions without maintaining two stylesheets.

Separate what mirrors from what does not. Navigation order, breadcrumbs, carousel arrows, form label positions and progress bars mirror. Product photos, logos, video play buttons, process diagrams containing text and the value direction of charts usually do not. Fonts need their own choice too: many Latin web fonts have no Arabic glyphs, so the browser falls back to a system font with different shapes and line height. Give the Arabic pages a web font that supports Arabic script and tune line height and size separately.

ElementMirror?How
Main navigation, breadcrumbsYesflips automatically with dir="rtl" and logical properties
Forward and back arrow iconsYesflip the icon so its meaning stays the same
Spec table column orderYesfirst column starts on the right; numbers inside cells stay LTR
Product photos, logoNoflipping reverses the product and any lettering
Model numbers, standards, phones, emailsNowrap in bdi or dir="ltr" to keep left-to-right
Video play buttons, images with textNokeep as is; make an Arabic version where needed
Table 1: which elements mirror on an Arabic page

Why do model numbers, digits and units break most often?

The browser reorders left-to-right content inside Arabic text; the fix is to mark model numbers, standards, phones and emails as left-to-right runs. When an Arabic sentence contains left-to-right content such as “SS316L”, “ASME B16.5” or “+86 772 …”, the browser’s bidirectional algorithm reorders characters by type, and hyphens, slashes and plus signs often land in the wrong place. The model number a buyer sees may not match your real one, which in B2B is a genuine risk. Wrap these fragments in a bdi element or a span with dir="ltr" so each displays as a single left-to-right unit, and set numeric cells in spec tables to LTR as well.

Whether to show Western digits (0–9) or Eastern Arabic numerals should be agreed with your target market and your reviewer, then applied consistently across the site; model and standard numbers are never converted. Units and standards are not translated either: keep ASTM, EN, ISO and GB numbers as they are and explain their purpose in Arabic alongside. Before launch, have an Arabic-literate reviewer go page by page through the spec tables and confirm that every model number and value matches the English version. That step matters more than any automated check.

Self-check: on an Arabic product page, find a hyphenated model number and an international phone number and compare them character by character with the English page. Any difference in order means bidirectional text has not been handled.

How should hreflang and URLs be set for Arabic pages?

For most exporters an /ar/ subdirectory with hreflang="ar" is enough; what matters is that Arabic and other language pages point to each other. hreflang is the annotation that tells Google “these pages are language or regional versions of the same content”. Google Search Central sets hard rules: language codes follow ISO 639-1 and region codes ISO 3166-1 Alpha 2; you cannot specify a country code by itself; each language version must list itself as well as all other versions, and if two pages do not point to each other the tags are ignored; x-default names the fallback when no language matches. For most export manufacturers one general Arabic version marked hreflang="ar" is enough. Split into ar-SA and ar-AE only when the Saudi and Emirati pages genuinely differ, for example in certifications, contacts or delivery terms.

For URLs, a separate subdirectory such as /ar/ is easiest to maintain and shares the authority of one domain with the other languages. The path itself can use short Latin-script English words, which are easier to share and track, while titles, descriptions, body text and structured data are in Arabic. Our first-batch article on multilingual SEO covers URL structure and hreflang in general; the Arabic-specific point is that titles and meta descriptions also display right to left, so avoid starting them with a model number, which can render out of order in search results.

How should contact details and inquiry forms be written?

Contact details on Arabic pages must answer three questions: which channel reaches you, how fast you reply and in which language. If your sales staff already use WhatsApp or phone with Middle East clients, put those buttons on the Arabic pages and say whether that person can communicate in Arabic. If your team can only reply in English, say so plainly rather than letting a buyer write in Arabic and wait for a reply they can read. Write phone numbers in full international format with the country code, displayed left to right.

State your time zone and working hours too. China and the Gulf are several hours apart, some countries’ weekends differ from China’s, and many businesses adjust their hours during Ramadan; check each against the buyer’s country and put it on the page and in the auto-reply. Translate every form label, placeholder and error message and align them right to left; fields where buyers type a company name, email or model number can be set to left-to-right input to avoid mixed ordering. The confirmation page and confirmation email after submission need Arabic versions as well.

What should be checked before Arabic pages go live?

Run at least four real checks before launch, covering layout, bidirectional text, source annotations and the inquiry path; if any fails, do not go live. Do them in a real browser: automated tools help but cannot replace looking at the page.

  1. Screenshots: capture desktop and mobile widths and confirm the layout is mirrored with no horizontal scrolling
  2. Comparison: check the display order of model numbers, phones and emails on every page against the English version, character by character
  3. Source: confirm lang and dir are on the html tag and hreflang is complete in both directions
  4. Inquiry test: submit a test inquiry in Arabic and confirm a salesperson receives and can read it, and that the confirmation email renders correctly.

When we build multilingual sites, right-to-left languages such as Arabic share one component set with the other languages, switching direction through the dir attribute and logical properties; the glossary is locked before writing, and every layout is screenshot-checked before launch. If you already have Arabic pages, the free review runs these four checks and tells you where buyers would notice problems.

Further reading

Follow-up questions

Is adding dir="rtl" enough for an Arabic site?

No. dir="rtl" sets the page direction, but model numbers, phones and emails still need to be kept left-to-right, icons and layout must be checked for mirroring, and the font must support Arabic script.

Do Saudi Arabia and the UAE need separate Arabic versions?

Most exporters need one general Arabic version marked hreflang="ar". Split into ar-SA and ar-AE only when certifications, contacts or delivery terms genuinely differ between the two.

Should Arabic page URLs use Arabic script?

Not necessarily. An /ar/ subdirectory with short Latin-script words is easier to share and track; titles, descriptions and body text are in Arabic.

Can we run an Arabic site if nobody on the team speaks Arabic?

Yes, but state your reply language honestly on the page and have an Arabic-literate reviewer check the content before launch. Do not let buyers assume they can correspond in Arabic and then wait for a reply they can read.

Sources

  1. W3C Internationalization: structural markup and right-to-left text in HTML
  2. Google Search Central: localized versions of your page (hreflang)
  3. Google Search Central: managing multi-regional and multilingual sites

Check your site for free

Enter your domain and we check 14 basics for search and AI access, live. Read-only fetch of public pages; we do not store your domain.