Live data from Hacker News

Writing HTML by hand

simblob.blogspot.com

71–76 of 76 posts

Re: Writing HTML by hand

#71

Earlier quoted context omitted.

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.

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.

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

#72

Earlier quoted context omitted.

Arguably, org-mode provides a "better markdown", but it's decidedly more niche.

I like org-mode, but one of my gripes is that code block syntax is too clunky.

It's definitely heavier than Markdown's, but then again, it can do a lot more... In practice, if you're using Emacs, it doesn't really matter, because you can just insert a code block, and specify the language (if you're not using Babel stuff)

Re: Writing HTML by hand

#73

Earlier quoted context omitted.

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.

yes of course. > I can never remember which brackets to use and that is patently untrue, as you just demonstrated.

I had to look it up before writing my comment :)

Re: Writing HTML by hand

#74

Earlier quoted context omitted.

Yes, it's really simple. And if he meant sizing, "height" and "width" parameters still work in an img-tag: (also the other parameter is set to "auto" automatically, at least in Firefox)

pretty sure you're not supposed to use px in the height attribute. they are pixels. the width will be set to match the aspect ratio but your browser will have to DL the image first. which probably doesn't matter unless you have content to the left/right of it, then it'll get bumped when the image loads. layout shift is a nasty thing.

But you can do it and it works. And because it's about taking quick notes, it's not really about the beauty of the layout or layout shifts, isn't it?

Re: Writing HTML by hand

#75

HTML is how I write . I struggled with Markdown (and various other mark up formats) for a long time, until I realised that, for me, nothing beats plain HTML for simplicity and expressive power. I now use HTML the way people generally use markdown: as an open, easy to read, easy to write, plain-text format for taking notes, writing articles, expressing thoughts, and so on. I didn't really choose HTML, I just sort of n…

How do you create TOC ? Navigation bars ?

Re: Writing HTML by hand

#76
post #75

HTML is how I write . I struggled with Markdown (and various other mark up formats) for a long time, until I realised that, for me, nothing beats plain HTML for simplicity and expressive power. I now use HTML the way people generally use markdown: as an open, easy to read, easy to write, plain-text format for taking notes, writing articles, expressing thoughts, and so on. I didn't really choose HTML, I just sort of n…

How do you create TOC ? Navigation bars ?

There's a difference between a web-site and a document. When you fire up a word-processor do you produce a document with "navigation bars".

As for TOC, I've never written anything that strictly needs one. I do have "hxtoc" on my laptop, but I've never needed it.

I do publish some of my writing to my website, and I discuss the minimal tooling I use here: https://brett.coulstock.id.au/site-colophon.html

Post reply on HN