Enriching Web Pages: Rendering Text
In this lesson, we'll render text and enrich our web page.
No doubt, even in our multimedia-based web era, text is an indispensable part of web pages. As you already saw in Listing: Rendering long text, plain text without any markup is understood by the browser and rendered with replacing multiple spaces (including white space characters, such as tab) and line breaks with a single space character.
As you experienced, Exercise: Adding inline and block elements to our html used a few special markups, such as <strong>
and <em>
, to add special importance to their content and let the browser represent them with some kind of highlighting, such as bold and italic formatting.
Get hands-on with 1400+ tech skills courses.