0

I'm confused

I'm new to this but the lesson on attributes said that the Align attribute for <p> was not supported by HTML5 but I tried it and it worked.... Why is this? I made sure that the <!DOCTYPE html> tag was at the top.

10th May 2019, 4:38 AM
Omyster3000
7 Respuestas
+ 2
So what? Your browser interprets html, it is not an formal language. So your html is not compliant with HTML5, but your browser don't care.
10th May 2019, 7:17 AM
Daniel Adam
Daniel Adam - avatar
0
Hi, I'm not really familiar with HTML, but I think <p>tags still exist in HTML5. How exactly is is stated in the course? EDIT: I misread your question. The align attribute seems to work for me too. odd.
10th May 2019, 5:41 AM
Robbe Nooyens
Robbe Nooyens - avatar
0
Are you talking about the <p> tag itself, or how they first president the <p> tag?
10th May 2019, 5:49 AM
Omyster3000
0
My bad I read your massage wrong😅
10th May 2019, 5:50 AM
Omyster3000
0
It said "the align attribute of <p> is not supported in HTML5."
10th May 2019, 5:51 AM
Omyster3000
0
But I tried <p align="right">paragraph</p> and it still work the same way as with <hr/> tags
10th May 2019, 5:55 AM
Omyster3000
0
Hmm ok, I'm quite now to all thing so thanks for you comments
10th May 2019, 2:03 PM
Omyster3000