Live data from Hacker News

Writing HTML by hand

simblob.blogspot.com

31–40 of 76 posts

Re: Writing HTML by hand

#31

For many purposes it is needlessly verbose to write html by hand. Thats why markdown became popular. But if more people do it and report their usage patterns one could maybe create a "super-markdown", i.e., the closest you could get to mapping html flexibility without the annoying XML verbosity.

I've created xidoc[0], which is meant to make writing HTML (as well as LaTeX) easier and more powerful.

[0] http://xidoc.nim.town/

Re: Writing HTML by hand

#33

Earlier quoted context omitted.

but how do you do images or video, they need some extra magic work

I'm not sure I understand your question. is the tag you use for an image, and there are tags to embed video.

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)

Re: Writing HTML by hand

#34
post #16

Earlier quoted context omitted.

The optional form is weird looking coming from the XHTML era where we were trained on the auto-closing form. Looking up elements that support no closing tag: html, head, body, p, li, dt, dd, option, thead, th, tbody, tr, td, tfoot, colgroup Makes sense if you think about it. Basically everything is pretty well defined and its obvious what next tag should close the context. for example obviously ends when you come acr…

I lived through the XHTML era; when I was doing web-design I adopted it for many projects. It just seemed right to rigorously enforce a formal approach, and I suspect it reduced errors. Took me a long time to train myself out of afterwards though. But the optional-style works I think for writing . Especially if you're just writing a document . If you don't have site-menus, a search bar, social-media sharing icons, ja…

You mean , presumably.

Re: Writing HTML by hand

#35

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…

links are such a pain to write though. Probably the biggest annoyance when I write in raw html.

Re: Writing HTML by hand

#36

Earlier quoted context omitted.

I lived through the XHTML era; when I was doing web-design I adopted it for many projects. It just seemed right to rigorously enforce a formal approach, and I suspect it reduced errors. Took me a long time to train myself out of afterwards though. But the optional-style works I think for writing . Especially if you're just writing a document . If you don't have site-menus, a search bar, social-media sharing icons, ja…

You mean , presumably.

is a self closing tag. This is used in XML / XHTML for elements that have no contents.

It is a valid short form of

Re: Writing HTML by hand

#37

Earlier quoted context omitted.

I lived through the XHTML era; when I was doing web-design I adopted it for many projects. It just seemed right to rigorously enforce a formal approach, and I suspect it reduced errors. Took me a long time to train myself out of afterwards though. But the optional-style works I think for writing . Especially if you're just writing a document . If you don't have site-menus, a search bar, social-media sharing icons, ja…

You mean , presumably.

No.
is shortened to

Re: Writing HTML by hand

#38

Earlier quoted context omitted.

I lived through the XHTML era; when I was doing web-design I adopted it for many projects. It just seemed right to rigorously enforce a formal approach, and I suspect it reduced errors. Took me a long time to train myself out of afterwards though. But the optional-style works I think for writing . Especially if you're just writing a document . If you don't have site-menus, a search bar, social-media sharing icons, ja…

You mean , presumably.

[deleted]

Re: Writing HTML by hand

#39
post #35

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…

links are such a pain to write though. Probably the biggest annoyance when I write in raw html.

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

#40

Earlier quoted context omitted.

You mean , presumably.

is a self closing tag. This is used in XML / XHTML for elements that have no contents. It is a valid short form of

technically
is not allowed to have an end tag in the HTML spec

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

so it should be
on its own or

Post reply on HN