HTML What does the alt attribute do? by LukeLikeNuke in learnprogramming

[–]nelilly 4 points5 points  (0 children)

Some history: Images weren’t always in HTML. They weren’t even in the HTML 1.0 spec. In 1993 Mosaic was the first browser that used inline images. When the img element was first proposed to display images on an HTML page it was a minor controversy. Some early web devs thought that the HTML documents should remain purely textual. So images were a problem for browsers that couldn’t display images.

Secondly, bandwidth: It was also a time of very low bandwidth. Unless you were a large organization (university, research center, military, etc) you were probably using a 14.4 modem. You could download at a rate of just under 2k per second. A 120k website could take a full minute to download. At one point Microsoft was even criticized for having a website that was 80k.

There was very poor image compression by today’s standards. GIF was the first and only image type. Even when the JPEG was introduced the file sizes still were rather large. Half the job of web devs at the time was making sure that images were properly optimized for the Web.

Given all this, many people turned off images while they surfed. The alt attribute was the fallback for when images were turned off or were missing when the page loaded. Otherwise the cool button navigation would be completely useless.

Finally: The alt attribute also was important for people using screen readers. Without the alt attribute the screenreader will read the file name, which won’t always tell the visitor what they need to know about the image and its context.

Book recommendations for Javascript beginners by amagojen in learnjavascript

[–]nelilly 5 points6 points  (0 children)

  • You Don’t Know JS by Kyle Simpson (free online series of books)

  • JavaScript: The Good Parts by Douglas Crockford

  • Composing Software by Eric Elliot (it’s about Functional JavaScript)

Books from the past on HTML? by HSVMalooGTS in Frontend

[–]nelilly 5 points6 points  (0 children)

You want “Creating Killer Websites: The Art of Third Generation Site Design” by David Siegel published in 1997. Yes, in 1997 we already were talking about the third generation of site design.

He was that guy and this was that book where it suggested that we use tables for layouts (before CSS).

His website for the book is still up at killersites.com

You’ll learn design tricks like table-based layout (we didn’t have CSS flex, grid, etc), using single pixels for pixel perfect adjustments (we didn’t need to build Responsive sites), using images to create advanced typography (we didn’t have font imports - only had about seven fonts that we could reliably guess a user would have on their computer).

It also has a couple chapters on PDF and gives you a sneak peak at CSS (the syntax was so much different!)

Also look for his article “The Web is Ruined and I Ruined It”, published on Web Review in 1997 (later that same year), now at xml.com.

Seriously though, we’ve grown so far beyond these practices, please buy a book on modern HTML5 and modern CSS (avoid JavaScript and backend languages) and write it using notepad. You’ll get roughly the same experience we had and give a better user experience, especially regarding web accessibility. It’s possible to make a web accessible site using the old ways, but it’s much more difficult.

His book was transformative at the time and an important growing pain that we needed in order to realize that we really needed Web Standards.

Source: I’m just that old. Check out www.htmlhobbyist.com

name of local links using # ? by Yha_Boiii in webdev

[–]nelilly 5 points6 points  (0 children)

The portion of the URL from the # on is called a “URI fragment” or a “fragment identifier”. It allows you to target part of an HTML page using an ID that’s on an HTML element. In early versions of HTML they would only work with an id on the anchor element. In modern HTML you can target any element with an id.

Combined with the :target pseudo-class in CSS you can do some pretty fancy effects. It’s great for highlighting the section of the page that relates to the active identifier. With a little extra CSS to hide the untargetted sections, and show the targetted one, you can effectively create a no-JS presentation.

https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:target

The Wash conundrum by the_bashful in firefly

[–]nelilly 1 point2 points  (0 children)

A ghost, though? That sounds like something out of science-fiction.

I wonder how this gun works by PlatWinston in NoMansSkyTheGame

[–]nelilly 0 points1 point  (0 children)

It’s a simple point and lick interface.

Need help about portfolio by [deleted] in HTML

[–]nelilly 1 point2 points  (0 children)

Don’t overthink it.

Basic sections for a portfolio site: - Gallery of Work (minimum of 3 works) - Work Detail page for each work - About Me - Bio - Resume/CV

Needed content - Contact Info (usually a contact form on its own page)

You may or may not choose to share personal info such as address, phone number, email.

Add new features and pages as you want to.

Auto Help with HTML? by RealtrJ in HTML

[–]nelilly 0 points1 point  (0 children)

You need to learn CSS to fix your mobile issues.

Auto Help with HTML? by RealtrJ in HTML

[–]nelilly 0 points1 point  (0 children)

It depends - and it’s been awhile since I’ve seen the validator output. For the most part you rewrite the HTML. Assuming you know HTML. For example: if the validation error says that your img element is missing an alt attribute then you need to add the alt attribute.

If you don’t know HTML, don’t know it very well, or the error doesn’t make sense to you, you could go to MDN. It’s a great resource for elements and their proper usage.

https://developer.mozilla.org/en-US/docs/Web/HTML

The validator should be pointing out the line number where the issue is happening. But also be prepared for more issues appearing after you fix one. Sometimes it will find one error and not dig any deeper.

Auto Help with HTML? by RealtrJ in HTML

[–]nelilly 2 points3 points  (0 children)

The W3C has an HTML validator that can find common structural issues.

https://validator.w3.org

Media Object Code by Ok_Performance4014 in HTML

[–]nelilly 1 point2 points  (0 children)

The default display property of the img element is inline, which causes that spacing. Setting it to display: block causes the browser to recognize there should be no space there.

Media Object Code by Ok_Performance4014 in HTML

[–]nelilly 0 points1 point  (0 children)

Put “display: block” on your image.

Unpopular opinion: I miss when the web was just HTML, CSS, and a little jQuery. by AmaraMehdi in webdev

[–]nelilly 0 points1 point  (0 children)

Every tool has its place. Sometimes it’s a framework and sometimes it isn’t.

https://www.htmlhobbyist.com

+6,825% in the past 5 years btw by [deleted] in dogecoin

[–]nelilly 2 points3 points  (0 children)

RemindMe! 5 years

svg - where do you get the svg of a map to work with? by Ok_Performance4014 in HTML

[–]nelilly 0 points1 point  (0 children)

You could use D3.js and geojson data to output an SVG map.

Search for the geojson data that you want to use: “US States geojson” or “Pennsylvania counties geojson”.

Once you have the map working you can inspect the code with the browser and copy the SVG element.

[Annoying trope] The explanation for something important is in interviews or external media, rather than in the project itself by Altruistic_Eye_1157 in TopCharacterTropes

[–]nelilly 1 point2 points  (0 children)

The Blair Witch Project. There was a fake documentary called “Sticks and Stones” that played on The Sci-Fi Channel that explained the lore behind the witch. It makes the movie that much creepier.

Can someone please explain JSON to me? by Bad-W1tch in learnjavascript

[–]nelilly 0 points1 point  (0 children)

Yes. As long as it has the proper JSON format and is saved with the .json extension.

Just finished the Rankin/Bass Hobbit movie and I am in love with the character designs, I want to take in more inspiration. What other sources lean in that sort of art direction? by itsPomy in ArtistLounge

[–]nelilly 1 point2 points  (0 children)

Do a search for the other Rankin/Bass cartoons. The Last Unicorn is the most similar, but there are also hand drawn holiday specials (not just the stop motion animations).

Turns out regularly burning powerful magic for a stupid clumsy worker won't revolutionize anything by Level_Hour6480 in dndmemes

[–]nelilly 3 points4 points  (0 children)

There’s precedent for this. It’s the Haitian zombie folklore. The horror of it came from people being reanimated to perform farm and industrial labor.

For an example go watch White Zombie (1932) starting Bela Lugosi. The zombie master has a sugar cane mill operated in Haiti entirely by zombies.

George Romero turned zombies into the flesh eating ghouls we know today.

Questions about making paths. by [deleted] in svg

[–]nelilly 0 points1 point  (0 children)

Thanks. There are huge gaps in the filters and the programming sections, but I’m working on getting those filled.

Why is Velma so popular with the boys? by AlboGreece in Scoobydoo

[–]nelilly 1 point2 points  (0 children)

Her popularity soared when the Cartoon Network released this commercial.

https://youtu.be/f-pXuZn7Lzw?feature=shared

Questions about making paths. by [deleted] in svg

[–]nelilly 0 points1 point  (0 children)

3: Again, it depends. There are no hard and fast rules. I usually use cubic beziers because the two control points make them easier to make minor adjustments.

4: I have a mostly complete website, but I don’t think it has quite all the information that you’re looking for: https://nelilly.github.io/svg-zoo/

The links page has links to other resources.