Align attribute in HTML5 | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Align attribute in HTML5

how come you say that the align attribute is not supported in html5 but it works on notepad??

13th Mar 2019, 10:52 AM
Zeal
Zeal - avatar
4 ответов
+ 2
You got it wrong. It says that it is deprecated! That means you SHOULD NOT use IT (in order to have HTML5 conform code). It doesn't say that you CAN'T! The browsers may still support the attribute for compatibility reasons. PS.: You say it works in Notepad? How can a code "work" in a text editor?
13th Mar 2019, 11:10 AM
Pete Wright
Pete Wright - avatar
+ 3
It works in all major browsers for now but support could be dropped any time by any browser, so you should use CSS for future.
13th Mar 2019, 11:04 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
0
Thanks
13th Mar 2019, 11:06 AM
Zeal
Zeal - avatar
0
Oh. OK 👌
13th Mar 2019, 11:13 AM
Zeal
Zeal - avatar