How can I view Arabic/Persian numbers in a HTML page with strict doctype?

后端 未结 10 1848
时光说笑
时光说笑 2020-12-18 19:26

I have an HTML page that is right-to-left. When I don\'t use any doctype, my numbers are in Arabic/Persian, but when I use strict mode they turn to English.

         


        
10条回答
  •  醉梦人生
    2020-12-18 19:45

    Assuming you want an XHTML 1.0 Strict document:

    
    
      
        
        Title here
      
    
      
        

    Text here

    Here's an equivalent HTML 4.01 Strict document:

    
    
      
        
        Title here
      
    
      
        

    Text here

    Here's an equivalent HTML5 page, just for comparison purposes.

    
    
      
        
        Title here
      
    
      
        

    Text here

提交回复
热议问题