Reader small image

You're reading from  Full Stack Web Development with Raspberry Pi 3

Product typeBook
Published inAug 2017
Reading LevelExpert
PublisherPackt
ISBN-139781788295895
Edition1st Edition
Languages
Right arrow
Author (1)
Soham Kamani
Soham Kamani
author image
Soham Kamani

Soham Kamani is a full-stack developer who has extensive experience in the JavaScript ecosystem. He works as a consultant, developing end-to-end web-based solutions for clients around the world. He is an open source enthusiast and an avid blogger. He has worked on many frameworks and technologies such as React, Angular, Node, Express, Sails, SQLite, Postgres, and MySQL, and he has worked on many projects in the IoT space using Arduino and Raspberry Pi systems.
Read more about Soham Kamani

Right arrow

Extending our application

The first step in enhancing our application is to have it deliver HTML instead of plain text.
HTML is the markup language of the web, which is used to give a web page its structure. In essence, it's just a bunch of tags that give meaning to the text.

For example, the current output from the temperature API is 26°C. Although it gives us the information we need, it would be more meaningful to highlight the actual value more than the unit. An output of 26°C looks better than our plain text version.

Let's translate this into HTML. We have the strong tag, which is used to give emphasis to the text by making it thicker than usual.

The standard format of HTML tags is as follows:

    <tag>text</tag>

Here, we replace tag with the name of our tag. If we wanted to make only the value bolder, we would write this:

    <strong>...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Full Stack Web Development with Raspberry Pi 3
Published in: Aug 2017Publisher: PacktISBN-13: 9781788295895

Author (1)

author image
Soham Kamani

Soham Kamani is a full-stack developer who has extensive experience in the JavaScript ecosystem. He works as a consultant, developing end-to-end web-based solutions for clients around the world. He is an open source enthusiast and an avid blogger. He has worked on many frameworks and technologies such as React, Angular, Node, Express, Sails, SQLite, Postgres, and MySQL, and he has worked on many projects in the IoT space using Arduino and Raspberry Pi systems.
Read more about Soham Kamani