img border = 0 |
img border = 0 |
Terminator |
Nov 6 2015, 03:44 PM
Post
#1
|
Advanced Member Group: Members Posts: 218 Joined: 19-March 15 Member No.: 22,398 |
Again with the same class project, the directions are a mess, its a bunch of words that aren't well organized, steps are completely out or order (example: step 2 and many after mention specific code to type in the external css file, but then step 15 mentions that using an external css file would be a good idea and gives instructions on what to name it. This should have been step 1.)
Anyway one of the out of order steps says: "use border="0" on all pages for images" Just wondering why would I need to do that? And also I think it would be better to create an IMG class rather than put border=0 on each image. But what is the purpose of this? I don't see any borders showing up around my images, including the ones that are links. I tried searching for this and anything that comes up seems to be from 2010. Do you think this is another deprecated step like the HR noshade? thanks. |
pandy |
Nov 6 2015, 04:26 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
it definitely is. i'd say the border attribute for images went out of use long before 2010. this was one of the first css tricks that was widespread. and you don't even need a class.
|
Christian J |
Nov 6 2015, 06:48 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
MSIE9 puts a border around linked images. Haven't tried newer versions.
But removing it with CSS is better than using the BORDER attribute. |
Terminator |
Nov 6 2015, 08:37 PM
Post
#4
|
Advanced Member Group: Members Posts: 218 Joined: 19-March 15 Member No.: 22,398 |
|
pandy |
Nov 7 2015, 05:05 AM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
pandy |
Nov 7 2015, 05:08 AM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
i think there is a point in learning a little about old style html thogh. you might later get a job rewriting such pages or make smaller changes to them. but that's another matter.
|
Christian J |
Nov 7 2015, 06:11 AM
Post
#7
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Nov 7 2015, 07:09 AM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
i don't know. do you mean just plain linked images, no styling?
|
Christian J |
Nov 7 2015, 07:52 AM
Post
#9
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Yes:
CODE <a href="/"><img src="dog.jpg" width="100" height="50" alt=""></a> |
Terminator |
Nov 7 2015, 11:35 AM
Post
#10
|
Advanced Member Group: Members Posts: 218 Joined: 19-March 15 Member No.: 22,398 |
is this in school, uni or something you've paid for? we see quite a few assignments here and scarily many use dated techniques and stright out bad solutions too. This is a college class, and so far it looks like I am probably too advanced for it. I'm sure it will be an easy A for me, but I need to make sure to ignore all the outdated programming advice that I am getting in the class. I was also told by the instructor that DIV tags cannot be used as classes, and they can only be ID tags. I'm at the point now to where I look up everything I hear in class to confirm that it is false and/or deprecated. I agree that it is a good idea to also learn a little about old HTML because it is still out there, but from the instructions it appears that this is still the current HTML coding. But the instructions were def written many, many years ago. |
pandy |
Nov 7 2015, 01:35 PM
Post
#11
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
Lo-Fi Version | Time is now: 25th April 2024 - 06:23 AM |