DEV Community


Discussion on: Where do I start with writing a web page nowadays?

trystansa profile image

Well, simple HTML/CSS/JS will do the job. No need fancy frameworks such as Vuejs, React and so on.

If you want good visuals, you can go for Bootstrap, it's one of the most popular CSS framework. But I personally prefer Materializecss that is more simple to use from my point of view.

For the Rest API call, you can do this with basic javascript. But you should look for Jquery, it's a small utility script that you plug to your webpages (<script src="jquery.css"></script>). It just provide simplified functions that replace some complicated javascript ones. For example if you want to select a DOM element by it's ID :

//With javascript only

//With jquery

You can then use the JQUERY Ajax utility to POST, GET or UPDATE http requests over your REST API back-end server

  //Success case code//
  //Fail case code//

You success case code can then update DOM elements to display your data.

You have the entire W3C school website for clear documentation and examples :
The Mozilla documentation pages if you want better documentation coverage, but less clear examples :

Materialize and Jquery also have clear and useful documentation.

rmoff profile image
Robin Moffatt Author

Thank you, that’s really helpful πŸ‘πŸ»

Forem Open with the Forem app