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.
Writing HTML by hand
31–40 of 76 posts
Re: Writing HTML by hand
#32I use whatever programming language to generate HTML string from a simple function like h("div", { class: "box" }, [ ... ]), so I can use variables, loops etc.
Re: Writing HTML by hand
#33Earlier 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.
(also the other parameter is set to "auto" automatically, at least in Firefox)
Re: Writing HTML by hand
#34Earlier 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…
Re: Writing HTML by hand
#35HTML 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…
Re: Writing HTML by hand
#36Earlier 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.
It is a valid short form of
Re: Writing HTML by hand
#37Earlier 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 shortened to
Re: Writing HTML by hand
#38Earlier 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.
Re: Writing HTML by hand
#39HTML 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
#40Earlier 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
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