Introduction
The languages HTML, CSS, and JavaScript have served well for many years. But do these languages have to be the only choice forever? How about an alternative language to serve a special use case of web development. Sometimes a web developer wants to create a web site or web application in the quickest, easiest possible way. In order to serve that use case, I propose a new language as an alternative to HTML/CSS/JS. Here I describe my thoughts in designing the new language. For information about the proposed new language, please visit http://www.alternativetohtml.info/ .
Automation of Layout and Style
When using HTML and CSS, the web developer must control layout and style in detail. Let us try to automate layout and style. The browser, not the web developer, will determine all aspects of layout and style. The web developer writes XML code that defines the content items and logical relations among these items. Using an advanced algorithm, the browser should be able to render a reasonable layout and style.
Automation of Responsive Web Design
Now that the browser automates the layout, it also automates responsive web design. Using the new language, the developer writes the web page code without regard to the user’s device, which may be a smart phone, tablet, desktop, or even TV. The browser knows its viewport dimensions and renders a suitable layout on the user’s device.
One Language Instead of Three
Web development is simpler using a single, unified, XML-based language rather than multiple languages like HTML/CSS/JS. As style and layout are now automatic, there is no need to use CSS with the new language. We also would like to eliminate the need to use JavaScript. A procedural programming language like JavaScript is too complex for the non-technical users. The most important JavaScript functionalities, including AJAX, can be supported by XML elements in the new language.
Farewell to the Scrollbar
Browsers render HTML content downward in the viewport, allowing the user to scroll down to bring more content into view. Scrolling is not really the optimal user experience. With the new language, if the content on a page does not all fit within the viewport, then the browser divides the content into multiple screens. Instead of scrolling, the user shifts between consecutive screens.
Conclusion
The new language will allow people to create web sites or web applications very easily. Layout, style, and responsive web design are automatic and require no effort by the web developer.