Tags for creating a list of any type of html. Tags - what they are and what they are. Reasons for using lists
We looked at an example of creating a simple page where comments on some html tags were given, because it seems to me that it is better to first show something with an example, and then move on to a more detailed description. That is why page creation was covered in the second lesson, and more detailed in the third.
So, below are descriptions of common html tags that are used on almost every page of the site. Believe me, there are already enough of them to write an entire website.
List of html tags
1. HTML tag (for paragraphs)
- displays a text paragraph (allows attributes style, class, id). The most common tag, since text is most often placed in it (however, it was created for this).For example, html code:
Text paragraph number one
And this is another paragraph
Text paragraph number one
And this is another paragraph
You can also add the style parameter to the tag:
With these different values you can edit appearance font. You can read about these parameters in a separate lesson: styles in html and the css font property.
You can also register the CLASS and ID attributes. For example:
2. HTML tag and(bold)
AND - two tags to make the font bold. There is no difference between these tags.
Let's give an example. Html code:
thumbnail
Converted on the page to the following:
thumbnail
You can also prescribe the CLASS and ID attributes (as in the case of Note
These tags have little impact on the ranking of documents in search engines, so it's best not to use them aimlessly.
3. HTML tag (create italics)
- italic font (allows parameters style, class, id)
For example, html code:
italic text
Converted on the page to the following:
4. HTML tag (underlined text)
- underlined font (allows parameter style, class, id)
For example, html code:
underlined text
Converted on the page to the following:
underlined text
5. HTML tag (creating a hyperlink)
Creates a link on the page (allows style, class, and others).
For example, html code:
link text
Converted on the page to the following:
All parameters and attributes of the tag will be discussed in a separate lesson: html tag.
6. HTML tag (titles in content)
,...,- heading tags inside the content (allows the style, class, id parameter). Moreover, the smaller the number, the more weight and size (by default) the text enclosed in these tags has.
For example, html code:
H1 heading
Tag
used for the page title (as well as the title)
Use these tags only for their intended purpose, i.e. only when the article needs a heading. This is because the tags
,...,have a big impact on search engines. If used correctly, the chances of getting to the top of the search results are very high.7. HTML tag (alignment)
For example, html code:
This text will be in the center
Converted on the page to the following:
This text will be in the center
Note- - for text
- ...- for everything (like an image)
8. HTML tag (subscript)
- displays a subscript font.
For example, html code:
Plain text, subscript
Converted on the page to the following:
Plain text, subscript text
9. HTML tag (superscript)
- displays a superscript font.
For example, html code:
Plain text, superscript
Converted on the page to the following:
Plain text, superscript text
10. HTML tag ,
, - displays the font one pixel more / less than the current size (allows the parameter style, class, id).
For example, html code:
Regular font, this font is one pixel larger
Converted on the page to the following:
Regular font, this font is one pixel larger
11. HTML tag (creating lists)
Lists (accepts style, class, id parameters). Each new element is recorded between
For example, html code:
List:
- first element of the list
- second list item
Converted on the page to the following:
List:
- first element of the list
- second list item
12. HTML tag
For example, html code:
1-row 1 element 1-row 2 element 2-row 1 element 2-row 2 element
Converted on the page to the following:
All tag features