From the course: Computer Science Principles: Digital Information

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Encoding formatted text

Encoding formatted text

From the course: Computer Science Principles: Digital Information

Start my 1-month free trial

Encoding formatted text

- [Voiceover] While text contains the words we want to say, we use emphasis, color, size, and other typography elements to add energy and additional meaning to the words. This can use features like bold, italics, underlines, strikethroughs, various colors, and other ways to format text. But when you are encoding text in binary, there's no clear way to say you want this text to be bold and this text to be underlined. To do this, we need to let the computer know as it is encoding and decoding the data to start bolding letters starting at this point and to stop at this point. We can do that by using a unique set of characters that the program can read and decode, understanding that the special characters mark the start and the end of a specific format type. Thirty years ago, this was done by typing a specific letter when holding the control button. On a Mac, it was done using the old open Apple or closed Apple buttons. This would create a two-character combination like this. This…

Contents