WordPress.org

Ready to get started?Download WordPress

Forums

Images: Height and Width Attribute? (2 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    Uploading images with WP results in a <img> tag without height and width attributes. Isn't recommendable to use them?

  2. Jack
    Member
    Posted 9 years ago #

    In theory yes. The browser doesn't need to calculate the dimensions itself, thus saving (slightly on) download/displaying time. But I always leave them out. Whenever you want to change something to an image, make it a bit less higher or wider, you also have to change the code in the post.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.