Hello! I’m Vadim and my WadBox column. Remember, in the previous article I showed a template with which you can create a document in HTML format (web page). In this article, I will describe in detail the tags that I used to write the previously specified code. Who cares, I ask for a cut!
So, let me remind you the code:
Hello! You see my site about various mobile phones and smartphones in the world . The site has descriptions of many imported and domestic devices.
Those who are confused in all these tags, do not read further, because you may get a headache.
As you noticed (and many knew before), the main tags differ in character substitution. The tag opens with the <> symbol, and closes with the symbol. Between (or) the tag itself is written, for example html. In addition to the usual tag, between the above characters you can substitute additional tags (parameters). For example, to fit the text in the center of the line, you need to enter the following code: align = "center". Okay, we’ve sorted the structure of tags, now you can see the tag values. PS By the sign * I mean any text or code.
The most important tag is * * - it tells the browser that it has an HTML file in front of it.
The tag * indicates the "head" of the page that is not displayed visually. It contains information for search engines and the name of the page.
The next tag is - is a set of parameters. What of this can be understood. There is the main tag, supplemented by the content type (= "Content-Type" content = "text / html) and the encoding (charset = utf-8"). Content type - html text, UTF-8 encoding. The tag itself is distinguished by the presence of an end. It does not have a part of the species.
The tag * denotes the "body" of the page, that is, the main part.
creates heading 1 (largest font).
creates a new paragraph to the heading.
Tag * highlights text in bold.
These are the tags I used when writing the page. Now let's try experimenting with formatting.
Let's change the background color of the page. To do this, we introduce the bgcolor = "?" Parameter into the (initial) tag . Instead ? substitute the required code in the RRGGBB format (see below for details). To make the page background turn red , enter FF0000 in place ? . You should get the following: . Output: parameter bgcolor = "?" changes the background color.
Interesting? Then continue. Now change the color of the text in the body of the page. Put after the quotes in the tag semicolon (;) and write the following code: text = "?" . Instead ? enter the color code in RRGGBB format, for example, green: 00FF00 . You should get the following: text = " 00FF00 " > . From the foregoing, we can conclude that the parameter text = "?" changes the color of the text.
For people who have never had a clue about HTML, it will certainly be interesting. I remember the first time I came across HTML magic. Isn't it interesting, entered a certain code, and the background of the page has changed. I entered the code and the color of the text changed. Not tired? Then continue!
Now add a link to another page that will be located on your computer. Do not bother, just enter the following code in notepad:
Smartphone BQ LYON
This phone is one of the smallest in the world. In addition, the body is made entirely of metal. The positive thing is the very powerful speaker. If you compare it with the volume of two iPhone 5S, then four times the sound from BQ Lyon will be more powerful.
and save as HTML. Next, open the file in a browser and copy the address.
Now insert this address into the “body” of the first page. To do this, use the following tag :? . Instead of a question mark, insert the name of the link that will be shown to users (for example, BQ Lyon), instead of NAME, the address of the second page. So, the resulting code Bq lyon insert into the “body” of the first page after the closing tag
from a new line. But not everyone has a computer that supports such url links to files from a hard disk or removable media. Therefore, I uploaded page number 2 to the UCOZ server. That is, instead of the link address of the file located on the computer, insert the following url:
So here is what you should be able to do:
That's all. The list of tags and RRGGBB color codes on the site of my friend: ab-sergeev.narod.ru/colors_RRGGBB.htm In the next issues I will talk about CSS, with which you can create a design for the site. Good luck