Jump to content

writing code html image. about <img> tag


Prashanth.P

Recommended Posts

Namasthe I'm recent learner to this site. How to write a HTML image code on notepad. I can't write the code in notepad even in tryit editor. w3schools displayed options are not working only for w3schools site image working. Please guide me in this <img> tag. Thank You.

Edited by Prashanth.P
spelling mistake
Link to comment
Share on other sites

  • Prashanth.P changed the title to writing code html image. about <img> tag

Alt shows the ALTernative text if image failt to load. The width and height as they suggest allows you add these dimensions in 'px', most of the time this is controlled by css, but these can help set the size beforehand and prevent layout jumping as images fill there occupying locations.

  • Like 1
Link to comment
Share on other sites

5 hours ago, dsonesuk said:

Alt shows the ALTernative text if image failt to load. The width and height as they suggest allows you add these dimensions in 'px', most of the time this is controlled by css, but these can help set the size beforehand and prevent layout jumping as images fill there occupying locations.

 

  • Like 1
Link to comment
Share on other sites

5 hours ago, dsonesuk said:

Alt shows the ALTernative text if image failt to load. The width and height as they suggest allows you add these dimensions in 'px', most of the time this is controlled by css, but these can help set the size beforehand and prevent layout jumping as images fill there occupying locations.

 

  • Like 1
Link to comment
Share on other sites

5 hours ago, dsonesuk said:

Alt shows the ALTernative text if image failt to load. The width and height as they suggest allows you add these dimensions in 'px', most of the time this is controlled by css, but these can help set the size beforehand and prevent layout jumping as images fill there occupying locations.

 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
On 3/2/2021 at 8:11 AM, Prashanth.P said:

Namasthe I'm recent learner to this site. How to write a HTML image code on notepad. I can't write the code in notepad even in tryit editor. w3schools displayed options are not working only for w3schools site image working. Please guide me in this <img> tag. Thank You.

You should really really not use notepad. I started with it and it just sucks. You may want to switch to either Atom or Visual Code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...