HTML tags and their meanings. The main tags of the HTML language. Tags to form lists
The HTML language is based on the concept of "tag" (eng. tag.-Labe, label). Tags consist in angular brackets (< >) and form pairs - containers (opening tag and closing). For example, the HTML document container is a pair of tags and. The Web page includes containers responsible for the document header (head) and contain additional information, as well as containers responsible for the content of the document (body). They are presented in the figure.
So HTML document lies in the container , title in container
, and the content of the document in the container . Container located in the title (container ) Contains the text displayed in top string Browser window. The title container can also add tags containing encoding, keywords Web page, as well as code for connecting cascading files styles CSS., JaVascript programming language, VBScript, etc.
An example of the simplest HTML page containing only the main tags:
Name pageContents of the simplest page
The result of the specified code is shown in the figure.
As you can see from the example, the text "Content of the simplest page" is displayed in conventional text. In order to format this text, special tags must be used. An example of using formatting tags is shown in the figure.
To change the font, its colors and size is used by TEG With the parameters "Face", "Color" and "Size". For example, in order to set the "Arial" font of red and 14 size, you must write the following code:
Formatomatest
To highlight paragraph in the text, a tag is used
In a container of which each paragraph of text is placed. Tags are used to create a header
,
,
,
,
,
.
Containers are used to generate lists in the document of the document. And tag.
forms a valve list, tag
- labeled list, and in tags
Place the elements of the list. An example of the display code of the lists, presented in the form of a numbered and marked lists is shown in the figure.
An example of using hyperlinks is presented in the figure.
When you specify the URL address of another page, you must specify either a complete absolute path to the "Full Way / Folder" page or relative (relative to this page) "Folder / Page". The "target" parameter allows you to open a Web page in a new or existing browser window.
To insert images on the Web page uses tag With the SRC parameters (path path), Width (image width), Height (image height), Border (frame around the drawing). An example of an image insertion code:
Often, when creating Web pages it is necessary to task the background color or background image. For this, tag attributes are used
"BGColor" or "Background-image". An example of insertion background color:
An example of insertion of the background image:
These attributes can be used not only for tag
But also for tags, areas and others that will be considered in the following topics.
Everyone who reads this lesson is probably knowing what HTML is. But the basic overview helps increase knowledge and hone skill, especially in the conditions of constantly developing web technologies.
Now there are many talks about the changes that HTML brought 5. Each tag that mentioned in this article is supported in HTML 4.01 and in HTML 5. Although some of these tags are widely used, it will be very useful to revise the methods involved.
1.
Each programming book contains mention that it is very useful to explain what makes your code. Why is commenting is good practice? It greatly helps to someone who reads your code, understand the essence of what is happening.
For HTML, commenting may seem to be a paragraph that increases the weight of the page. However, comments may be useful for determining sections and to save the structure and organization of the page code. The mark of the beginning and the end of various sections can really help when working on a project.
Menu item 1.
Menu item 2.
This is the main content.
...
2. Table styles: , , I.
To make a good table design, you need to use tags specified in the subtitle. They all affect the rows of the table and you can easily set styles for them.
Item.
Qty
SUM.
7
#1
3
#2
4
Turn the rows of the table in . Thus, the title of the table is formed.
Wrapped lines B. We form the final lines at the bottom of the table. Strings
must be determined to strings
Thus, the final strings are displayed to the other rows of the table.
Mounting with data turn in
.
Paragraph
Number of
Sum
7
#1
3
#2
4
3.
The drop-down list is a great way to submit data to select a user. They not only take up little space, but also familiar to users and easy to use. Wonderful property Is the ability to create categories (or subtitles) for list items.
Detroit Tigers Chicago Cubs Detroit Lions Chicago Bears
4. Headers -
,
,
,
,
, I.
Of course, everyone uses headlines. But if you are honest, then when you last used
Or the headline even lower? Headlines allow you to build less semantic structures, such as additional styles for text in
.
No need to create an additional work. Remember about header tags.