Frontend Development

Images in HTML

Submitted by NSA, , Thread ID: 10769

Thread Closed
NSA
) )
Supreme
Level:
0
Reputation:
93
Posts:
1.74K
Likes:
114
Credits:
459
01-10-2015, 08:21 PM
#1
Code:
<img src="URL" alt="Text to display if cant load image" width="104" height="142">
*Note* leaving out the width and height atributes will make the image its actual size.
xxx

RE: Images in HTML

Perileos
Doubt kills.
Prime
Level:
0
Reputation:
29
Posts:
374
Likes:
32
Credits:
6
01-10-2015, 08:22 PM
#2
Or just:
Code:
<img src="IMG LINK" alt="Description">
Fetches original height and width.
Been working with MyBB since 2013. Been involved with several forum such as Crackingseal & Cracked.to

RE: Images in HTML

NSA
) )
Supreme
Level:
0
Reputation:
93
Posts:
1.74K
Likes:
114
Credits:
459
OP
01-10-2015, 08:28 PM
#3
01-10-2015, 08:22 PM
Perileos Wrote:
Or just:
Code:
<img src="IMG LINK" alt="Description">
Fetches original height and width.

read the note....
xxx

RE: Images in HTML

kahraman451
Newbie
Level:
0
Reputation:
0
Posts:
18
Likes:
0
Credits:
4
25-10-2017, 12:24 AM
#4
<IMG SRC="IMG LINK" ALT="Description" ALIGN="ALGNMENT">

RE: Images in HTML

dead-angel
Newbie
Level:
0
Reputation:
0
Posts:
13
Likes:
0
Credits:
10
02-11-2017, 10:29 PM
#5
or if you want to get fancy
<a href="WEBSITE URL HERE"><img src ="url" height = "xxx" width="xxx" alt="desc"/></a>

RE: Images in HTML

Triicky
Novice
Level:
0
Reputation:
0
Posts:
20
Likes:
0
Credits:
7
10-11-2017, 03:55 PM
#6
And now with HTML5 we can use :

Code:
<img src="images.png"
   srcset="images.png, images-hd.png 2x"
   width="" height="" alt="">

Users browsing this thread: 2 Guest(s)