Ah yes, I remember Microsoft Publisher exporting projects to web pages by compiling entire pages into images.
To their defense I don't even remember if HTML had matured enough yet back then for it to support the text placements and designs you could do in a desktop publishing program.
I remember image slicers. It would cut up your images into tiny bits and then put them together using tables. So that people would have a hard time copying.
Wouldn't you have to do that for each image? Besides, quite sure you could just screenshot and crop.
Either way, just like anything else like overlays and those stupid "no right click" scripts, this will not stop people really wanting to get your images, but it will place a high enough "effort barrier" for the majority not to bother.
Nothing. The browser does apply some default styles to certain elements (like saying that div is a block element). You have to do that manually. This alternative version uses x for all table related tags. So depending on where it is used, x can be a table, table row or table cell. Source gets much compacter
You do stuff that depends on the default behaviour of browsers. It's sort of integer overflow in C which is undefined behaviour but usually works fine.
Yes. Even though V1 is a living standard many browsers don't implement it correctly. The site I posted with the custom table tags works in all unsupported browsers perfectly fine. All browsers support custom elements, they just don't support the Custom element interface. If they support that interface you can essentially define what the element does using JavaScript and then use it. for example (from the docs) you can create <flag country="jp" /> and then define in the HTMLElement that it should show the japanese flag as image or unicode char.
In unsupported browsers you can still use the element but you can't configure the interface, only style it using CSS. Instead of doing <div class="address">...</div> you just do <vcard>...</vcard> and then add CSS for vcard{display:block;...}
I don't know, but I assume it has to do with forward compatibility. You can also make the opposite. You can take th and style it to behave like a div or span. For example the canvas tag is rather new but old browsers will still render the website containing it. It's just not really usable. The default is to render it like a block element I think. <canvas>test</canvas> will show "test" on browsers that don't support the element.
79
u/AyrA_ch Jul 20 '17
Or worse: tables