Is it possible to create a website without markup language?

Asked

Viewed 319 times

6

Is it possible to create a website without any markup language, programming only, for example Javascript? In general, how?

2 answers

7


Yeah, but it doesn’t make any sense.

You see, make a minimum, and I kind of like the idea in web application, but for a site that needs to be used under universal web conditions, which needs indexing by search engines, it is not feasible.

Load the JS file and bring everything by it, probably via AJAX, there the script goes riding the GIFT "in the hand", that is, putting the content, the formatting, everything in the objects of the document. Instead of marking what you want, you will program what you want imperatively. Just as it is possible to access everything that is in the document with JS can manipulate it too, can create new nodes and go assembling the page.

0

A website is simply a file that a remote server responds to via an HTTP request and is rendered by the browser, so I have some ideas:

  1. Use a return MIME format other than HTML, but that every browser understands and shows, such as "text/Plain". Make graphic elements with ASCII Art! Be careful with the file format, or it will simply be downloaded (html - content-type of text-Plain causes browser to download of file )
  2. Use only the element <canvas>, and use the 2D drawing API to make the site as you like! I made a Game of Life like this in https://all-life.glitch.me/, although I have put a minimum marking for other things (code).
  3. Use a another programming language like C, using Opengl/Webgl for the graphical part, and that Compile for Webassembly. Maybe under the table he uses a markup language, but who will stop to read Assembly?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.