--- title: Text Formatting in HTML --- ## Text Formatting in HTML HTML provides you a lot of useful elements for text formatting. It allows to make your text: bold, italic, mark and much more. Changing the style of your text isn't without any reason - the main thing is just make the reader to take a look for some important notes. ### Bold and Strong You can easily change your text meaning by using HTML `` element. It makes words bold, which function is singling out the fragment of sequence. For example: ``` The most important part of your code is the end, because if you don't close the element, it will affect to everything! ``` You can also use `` as well - it adds also semantic "strong" importance. Your browser doesn't recognize a difference between those two elements, but it exists. ### Italic and Emphasized Usually used when quote something or putting a translate of word in a lot of articles. It makes them italic - just imagine a little kicked in the right letters. For example: ``` Theatre - teatos, teates and teatron. ``` You can also use `` as well - it adds also semantic "emphasized" importance. Your browser doesn't recognize a difference between those two elements, but it exists. ### Small It makes your text smaller than normal size of used font. This element's meaning was changed in HTML5 - it represents side-comments and small print. ``` Normal, small, normal, small! ``` ### Marked Element `` makes your text marked - in different words, it makes your text highlighted. You can use it to tell readers that is one of important things in your article. For example: ``` HTML is full of things and it's our journey to get known them better! ``` ### Deleted The element `` makes your text striked in the center. It's useful to show changes in your documents. ``` WWI started in 1913 1914 year. ``` ### Inserted Tag `` makes your text inserted to the article. Using other words that makes it much easier to understand - added. It shows a line under inserted text. ``` HTML isn't boring. You can make a lot of combinations of elements! ``` ### Subscripted Using element `` gives you a useful formatting as subscripted text (showing it smaller on the bottom). There is an example code: ``` This was in 2003 year (needs a link). ``` ### Superscripted If you want to make an opposite to subscripted text, you can easily use `` element. It shows a smaller text on the top. ``` 10x+y = 1000 ```