Anki007
Anki007

Reputation: 411

The align attribute on the img element is obsolete. Use CSS instead

<img align="left" src="Logo_CSA.jpg" alt="CSA Logo">

How can I remove this problem in img-tag? I am facing this problem when I'm checking my code in w3c validater pls suggest me a best alternative to solve this problem?

Upvotes: 1

Views: 6666

Answers (2)

GoinOff
GoinOff

Reputation: 1802

Replace align with style:

<img style="float: left;" src="Logo_CSA.jpg" alt="CSA Logo">

Upvotes: 0

Quentin
Quentin

Reputation: 943697

The align attribute for img was deprecated in 1998. The CSS equivalent is the float property.

img {
    float: left;
}

Upvotes: 4

Related Questions