![]() ![]() All of the formatting we do will be done with code in the markup file. Our HTML files contain only characters, but no formatting. This is a sentence with an emphasized word,Īnd a formula: x 2 - x + 1. Since this document is written in HTML, we can show you exactly what that HTML looks like by including it here: It's not as good at formulas, but the HTML markup to represent the same content would be something like this: This is a sentence with an emphasized word, We are concerned about HTML, which we will start writing soon. We aren't concerned about LaTeX in this course, but it is a good example of a markup language. (LaTeX is good at formulas: that's why it's used a lot in science and math publishing.) The details aren't important, but notice that the markup code contains some processing instructions that the LaTeX tools turned into formatting in the output: emphasized text was rendered in italics, and the formula was processed to look nice. For the LaTeX markup above, the resulting document will look like this: Resulting document after LaTeX processing The markup must be processed into a final document using some kind of tool. Someone writing a LaTeX document would type code like this: This is a sentence with an \emph word, and a formula: \(x^2 - x + 1\). ![]() For example, LaTeX is a markup language often used for scientic and mathematical documents. Markup LanguagesĪ markup language is a way to describe a document for a computer using only plain text. We'll have to wait for a decent explanation of “HyperText”, but we need to know what a “Markup Language” is before we go much further. We introduced HTML as the “HyperText Markup Language”, but didn't explain the acronym.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |