Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

center is not known element:html tag center not recognized angular 4

Tags:

html

angular

center tag is not working saying center is not known element

<center>
    <a><img class="placeholder_img" src="img/placeholder.png"></a>
</center>

I used the above html tag saying that "center is not known element".

like image 572
Vishnu Avatar asked Dec 23 '22 11:12

Vishnu


1 Answers

The <center> tag expired and deprecated long back.

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Use <div> instead:

<div style="text-align: center;">
  <a><img class="placeholder_img" src="//placehold.it/100"></a>
</div>
like image 183
Praveen Kumar Purushothaman Avatar answered Apr 20 '23 00:04

Praveen Kumar Purushothaman