Markdown, HTML, and JavaScript: How Do They Compare and When to Use Each?
Markdown, HTML, and JavaScript are all good web language options, but knowing when to use each is essential. Markdown is a markup language. Markup languages make coding in HTML easier for writers by simplifying tags and syntax. Coding beginners and web writers, especially journalists, find markdown tables ideal because Markdown’s straightforward syntax makes their code more readable. Therefore, one benefit of a markdown table is that it’s organized and easier to interprate. As a result, there is a lesser need for comments as well. Accompanied by Markdown, HTML and JavaScript are strictly designed for coding. However, what sets JavaScript apart from HTML is that it provides interactivity. For instance, the JavaScript table allows a user to input a search and be presented an output of related results. However, HTML does not include tags which enable this feature. Therefore, a benefit of using JavaScript for tables is that it enables coders to utilize interaction.
Markdown Table
Favorite Books
Title
Genre
Where The Crawdads Sing
Fiction
The Old Man and The Sea
Fiction
HTML Table
Favorite Books & Ratings
Title
Author
Note
Star Ranking
Where the Crawdads Sing
Delia Owens
Poetic fiction, prejudice & self-reliance
★★★★★
The Old Man and the Sea
Ernest Hemmingway
Fiction, struggle, resilience, & patience
★★★★☆
Moby Dick
Herman Melville
Adventure Fiction, survival & imperialism
★★★★☆
Harry Potter and the Sorcerer's Stone
J.K. Rowling
Fantasy, bravery & mystery
★★★★★
Just Kids
Patti Smith
Memoir, creativity & love
★★★★★
Atomic Habits
James Clear
Self-help/Self-Improvement
★★★★☆
The Great Gatsby
F. Scott Fitzgerald
Novel, tragedy & love
★★★☆☆
The Alchemist
Paulo Coelho
Adventure fiction, love/life lessons
★★★★☆
JavaScript Table
Favorite Books Archive
Title
Author
Note
Star Ranking
Where the Crawdads Sing
Delia Owens
Poetic fiction, prejudice & self-reliance
★★★★★
The Old Man and the Sea
Ernest Hemmingway
Fiction, struggle, resilience, & patience
★★★★☆
Moby Dick
Herman Melville
Adventure Fiction, survival & imperialism
★★★★☆
Harry Potter and the Sorcerer's Stone
J.K. Rowling
Fantasy, bravery & mystery
★★★★★
Just Kids
Patti Smith
Memoir, creativity & love
★★★★★
Atomic Habits
James Clear
Self-help/Self-Improvement
★★★★☆
The Great Gatsby
F. Scott Fitzgerald
Novel, tragedy & love
★★★☆☆
The Alchemist
Paulo Coelho
Adventure fiction, love/life lessons
★★★★☆
Future Hacks
The archived books list I designed is similar to how a library would show their inventory online. If this were a more useful website similar to that of a library, I would most likely want to add a hyperlink or dropdown page for each book, giving a rating section for readers to interact and share their ratings. Finally, the ratings would be averaged to list the final star rating.