How to add tags on the website

How to add tags on the website

Sometimes it is required to place the tag on the web page so that it did not perform the function assigned to it, and itself it was displayed on the screen. It can be required, for example, by drawing up textbooks on the HTML language and also for reduction of examples of fragments of the code in this language. Instruction 1. The fastest way of reduction on the web page of a code sample in the HTML language consists in use of the tag. After it place text fragment which you want to show, and it will be displayed unchanged, together with the tags placed in it. Then arrange the closing tag </plaintext>. This way has two shortcomings: first, it is not standard, so, the page with it can not undergo validation, and secondly, it will not be perceived by the old browsers supporting the HTML specification lower than 4. In them tags will not be displayed on the screen, and to be executed. Consider that the <pre> tag, being standard and supported by a large number of browsers, it is impossible to use instead of <plaintext> as it does not turn off execution of commands. 2. Rather universal way of the placement on the web page of text fragment with tags is its insert in the form of the image. For this purpose start any raster graphics editor, create in it the new drawing of the sufficient size, and then turn on the tool for text typing (the button with the letter A or T usually is for this purpose used). Bring a mouse arrow to the image upper left corner, click the left key, and then enter text fragment or insert it from a clipboard the CTRL keys-V. Crop the image (as to make it, depends on what you use the editor, for example, in GIMP for this purpose it is necessary to select a fragment, and then to select a menu item "Image" - "Otkadrirovat selection"). Save the result in the file of the GIF, PNG or JPG format (the first is more preferable). 3. Place the created image in the same folder of the server, as the HTML-file into which you are going to insert it. Then in the right place of this file place the following tag: <img src=image-name.extension>, where image-name.extension - a name of the graphic file together with expansion. If for any reason you placed the image not in the same folder, as the HTML-file, instead of a name of the graphic file place a full path to it. Consider that the user will not be able to browse the HTML-code fragment inserted thus if in its browser the demonstration of images is turned off. 4. Even more universal is the way of the placement on the page of HTML tags which consists in use instead of signs <i> of their codes. For this purpose use the following codes: instead of <-&lt; and instead of> - &gt;. This reception works practically in all browsers no matter how they are configured. </div> <p align="right">Author: <a href="/authors-and-team">«MirrorInfo» Dream Team</a></p> <!-- Медийное квадратное в статьях --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3584792177621109" data-ad-slot="9052496385" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <hr> <div class="article-print-email mt-3"> <a href="/digital/how-to-add-tags-on-the-website?tmpl=component&amp;print=1&amp;layout=default" title="Print article < How to add tags on the website >" onclick="window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;" rel="nofollow"><span class="btn btn-outline-secondary btn-sm"> <span class="fa fa-print" aria-hidden="true"></span> Print</span> </a>&nbsp; </div> <ul class="pager pagenav"> <li class="previous"> <a class="hasTooltip" title="As on the website to add statistics" aria-label="Previous article: As on the website to add statistics" href="/digital/as-on-the-website-to-add-statistics" rel="prev"> <span class="icon-chevron-left" aria-hidden="true"></span> <span aria-hidden="true">Prev</span> </a> </li> <li class="next"> <a class="hasTooltip" title="How to learn coding of the website" aria-label="Next article: How to learn coding of the website" href="/digital/how-to-learn-coding-of-the-website" rel="next"> <span aria-hidden="true">Next</span> <span class="icon-chevron-right" aria-hidden="true"></span> </a> </li> </ul> </div> </div></main><aside id="sp-right" class="col-lg-4 "><div class="sp-column "><div class="sp-module "><div class="sp-module-content"><div class="mod-sppagebuilder sp-page-builder" data-module_id="93"> <div class="page-content"> <div id="section-id-1602904569421" class="sppb-section" ><div class="sppb-container-inner"><div class="sppb-row"><div class="sppb-col-md-12" id="column-wrap-id-1602904569420"><div id="column-id-1602904569420" class="sppb-column" ><div class="sppb-column-addons"><div id="sppb-addon-wrapper-1602904580863" class="sppb-addon-wrapper"><div id="sppb-addon-1602904580863" class="clearfix " ><div class="sppb-addon sppb-addon-articles "><h3 class="sppb-addon-title">Recommended</h3><div class="sppb-addon-content"><div class="sppb-row"><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/society/how-not-to-get-used-to-each-other" itemprop="url"><img class="sppb-img-responsive" src="/images/2021/01/08/763630-havok-wallpapers-3840x216_thumbnail.jpg" alt="How not to get used to each other" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/society/how-not-to-get-used-to-each-other" itemprop="url">How not to get used to each other</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">08 January 2021</span><span class="sppb-meta-category"><a href="/society" itemprop="genre">Society</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/knowledge-base/how-to-transfer-gallon-to-liter" itemprop="url"><img class="sppb-img-responsive" src="/images/2022/04/05/O1CN01f03v701Nu7rjtQ6tr_60000000_thumbnail.jpg" alt="How to transfer gallon to liter" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/knowledge-base/how-to-transfer-gallon-to-liter" itemprop="url">How to transfer gallon to liter</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">06 April 2022</span><span class="sppb-meta-category"><a href="/knowledge-base" itemprop="genre">Knowledge Base</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/housekeeping/mold-and-as-to-fight-against-it" itemprop="url"><img class="sppb-img-responsive" src="/images/2021/04/21/Mold-Remediation-Services_thumbnail.jpg" alt="Mold and as to fight against it" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/housekeeping/mold-and-as-to-fight-against-it" itemprop="url">Mold and as to fight against it</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">24 April 2021</span><span class="sppb-meta-category"><a href="/housekeeping" itemprop="genre">Housekeeping</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/childen/what-women-are-preferred-by-dmitry-dibrov" itemprop="url"><img class="sppb-img-responsive" src="/images/2022/01/28/image_thumbnail.jpg" alt="What women are preferred by Dmitry Dibrov" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/childen/what-women-are-preferred-by-dmitry-dibrov" itemprop="url">What women are preferred by Dmitry Dibrov</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">28 January 2022</span><span class="sppb-meta-category"><a href="/childen" itemprop="genre">Children</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/beauty/why-varnish-on-nails-bubbles" itemprop="url"><img class="sppb-img-responsive" src="/images/2020/12/16/58381_big_thumbnail.jpg" alt="Why varnish on nails bubbles" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/beauty/why-varnish-on-nails-bubbles" itemprop="url">Why varnish on nails bubbles</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">17 December 2020</span><span class="sppb-meta-category"><a href="/beauty" itemprop="genre">Beauty</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/childen/whether-it-is-possible-red-caviar-when-breastfeeding" itemprop="url"><img class="sppb-img-responsive" src="/images/2022/01/17/bfe_1260x630_thumbnail.jpg" alt="Whether it is possible red caviar when breastfeeding" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/childen/whether-it-is-possible-red-caviar-when-breastfeeding" itemprop="url">Whether it is possible red caviar when breastfeeding</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">18 January 2022</span><span class="sppb-meta-category"><a href="/childen" itemprop="genre">Children</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/digital/how-to-restore-messages-in-mail" itemprop="url"><img class="sppb-img-responsive" src="/images/2022/03/02/apert_5_thumbnail.jpg" alt="How to restore messages in mail" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/digital/how-to-restore-messages-in-mail" itemprop="url">How to restore messages in mail</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">04 March 2022</span><span class="sppb-meta-category"><a href="/digital" itemprop="genre">Digital</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div><div class="sppb-col-sm-12"><div class="sppb-addon-article"><a class="sppb-article-img-wrap" href="/housekeeping/in-what-differences-of-luxury-cosmetics" itemprop="url"><img class="sppb-img-responsive" src="/images/2020/11/24/shutterstock_433621147-e1514515556705_thumbnail.jpg" alt="In what differences of luxury cosmetics" itemprop="thumbnailUrl" loading="lazy"></a><div class="sppb-article-info-wrap"><h3><a href="/housekeeping/in-what-differences-of-luxury-cosmetics" itemprop="url">In what differences of luxury cosmetics</a></h3><div class="sppb-article-meta"><span class="sppb-meta-date" itemprop="datePublished">27 November 2020</span><span class="sppb-meta-category"><a href="/housekeeping" itemprop="genre">Housekeeping</a></span><span class="sppb-meta-author" itemprop="name">Mirror Info</span></div></div></div></div></div></div></div><style type="text/css">#sppb-addon-wrapper-1602904580863 { margin:0px 0px 30px 0px;} #sppb-addon-1602904580863 { box-shadow: 0 0 0 0 #ffffff; } #sppb-addon-1602904580863 { } #sppb-addon-1602904580863.sppb-element-loaded { } @media (min-width: 768px) and (max-width: 991px) {#sppb-addon-1602904580863 {}}@media (max-width: 767px) {#sppb-addon-1602904580863 {}}#sppb-addon-1602904580863 h3{font-size:1.2rem;}</style><style type="text/css"></style></div></div></div></div></div></div></div></div><style type="text/css">.sp-page-builder .page-content #section-id-1602904569421{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;box-shadow:0 0 0 0 #ffffff;}#column-id-1602904569420{box-shadow:0 0 0 0 #fff;}</style> </div> </div> </div></div></div></aside></div></div></div></section><footer id="sp-footer"><div class="container"><div class="container-inner"><div class="row"><div id="sp-footer1" class="col-lg-6 "><div class="sp-column "><span class="sp-copyright">© 2020 - 2024 Mirror Info <br> <a href="/contacts">Contacts</a> <br> <a href="/privacy-policy">Privacy Policy</a> <br> <a href="/authors-and-team">Authors and Team</a><br> <a href="/archive">Archive</a></span></div></div><div id="sp-footer2" class="col-lg-6 "><div class="sp-column "><ul class="social-icons"><li class="social-icon-facebook"><a target="_blank" href="#" aria-label="facebook"><span class="fa fa-facebook" aria-hidden="true"></span></a></li><li class="social-icon-twitter"><a target="_blank" href="#" aria-label="twitter"><span class="fa fa-twitter" aria-hidden="true"></span></a></li><li><a target="_blank" href="#" aria-label="Youtube"><span class="fa fa-youtube" aria-hidden="true"></span></a></li><li class="social-icon-linkedin"><a target="_blank" href="#" aria-label="LinkedIn"><span class="fa fa-linkedin" aria-hidden="true"></span></a></li></ul></div></div></div></div></div></footer> </div> </div> <!-- Off Canvas Menu --> <div class="offcanvas-overlay"></div> <div class="offcanvas-menu"> <a href="#" class="close-offcanvas"><span class="fa fa-remove"></span></a> <div class="offcanvas-inner"> <div class="sp-module _menu"><h3 class="sp-module-title">Main Menu</h3><div class="sp-module-content"><ul class="menu"> <li class="item-110"><a href="/business" >Business</a></li><li class="item-114"><a href="/knowledge-base" >Knowledge Base</a></li><li class="item-115"><a href="/society" >Society</a></li><li class="item-116"><a href="/childen" >Childen</a></li><li class="item-117"><a href="/food-and-drinks" >Food and Drinks</a></li><li class="item-119"><a href="/sport" >Sport</a></li><li class="item-120"><a href="/health" >Health</a></li><li class="item-121"><a href="/travel" >Travel</a></li><li class="item-122"><a href="/beauty" >Beauty</a></li><li class="item-129"><a href="/housekeeping" >Housekeeping</a></li><li class="item-136"><a href="/?Itemid=136" >Archive</a></li><li class="item-138 current active"><a href="/digital" >Digital</a></li><li class="item-139"><a href="/animals" >Animals</a></li><li class="item-149"><a href="/interesting" >Interesting</a></li></ul> </div></div> </div> </div> <!-- Go to top --> <a href="#" class="sp-scroll-up" aria-label="Scroll Up"><span class="fa fa-chevron-up" aria-hidden="true"></span></a> <div data-position="top" class="sp-reading-progress-bar"></div> </body> </html>