tag, being standard and supported by a large number of browsers, it is impossible to use instead ofas 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: , 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 of their codes. For this purpose use the following codes: instead of <-< and instead of> - >. This reception works practically in all browsers no matter how they are configured.
How to add tags on the website
Digital
Hits: 85
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 . 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
Author: «MirrorInfo» Dream Team