News for hackers. Stuff that matters.
Re:Writing HTML by Hand by SPBS on Wednesday September 20, 2023 @08:28AM (#37583318)
<a href="">links</a> are such a pain to write though. Probably the biggest annoyance when I write in raw html.
Re:Writing HTML by Hand by adrianmsmith on Wednesday September 20, 2023 @08:34AM (#37583364)
But is [abc](http://...) any better? I can never remember which brackets to use, and I've been using Markdown for years now. I never have a problem remembering the HTML syntax.
Re:Writing HTML by Hand by alanbernstein on Wednesday September 20, 2023 @08:42AM (#37583427)
IMO, yes, it is so much more concise that it is worth memorizing.

https://mtsknn.fi/blog/how-to-remember-markdowns-link-syntax...

Think of it as a function call (mnemonically, it doesn't need to make sense conceptually).

Re:Writing HTML by Hand by fabianholzer on Wednesday September 20, 2023 @05:16PM (#37590291)
My problem exactly. My memory seems not to work well for symbols which rely mostly on position. Is it URL first or link text first, and do I put the URL in round or square brackets? Same with formatting: Is the first * italics or bold? I can remember <i> and <b> much better, and will trade off a bit of verbosity for not straining my memory anytime.
Re:Writing HTML by Hand by umpalumpaaa on Wednesday September 20, 2023 @07:46PM (#37591560)
Easy trick to remember it: [Button](url)

The [ and ] are ascii art for a button - in between goes what is clickable (title) and then comes the url.

Re:Writing HTML by Hand by MrVandemar on Thursday September 21, 2023 @04:16AM (#37594684)
The lack of internal consistency, especially the link syntax, has always been something I struggled with with Markdown. But that's about the first sensible way to remember it that I've seen.
Re:Writing HTML by Hand by jasonm23 on Thursday September 21, 2023 @03:53AM (#37594498)
yes of course.

> I can never remember which brackets to use

and that is patently untrue, as you just demonstrated.

Re:Writing HTML by Hand by adrianmsmith on Thursday September 21, 2023 @04:41AM (#37594871)
I had to look it up before writing my comment :)