Federal Agency for Education Belgorod State Technological University. V. G. Shukhov
S.P. Gavrilovskaya, R.A. Meatseedov, A.I. Rybakov
INTERNET TECHNOLOGIES
Methodical instructions for the execution of the estimated and graphic task
for students of economic directions
Belgorod
Laboratory work number 1 HTML document structure. |
|
Formatting HTML document ............................................... ...... |
|
Laboratory work number 2 Lists are simple and invested. |
|
Creating an HTML table .............................................. ......................... |
|
Laboratory work number 3 Creating hyperlinks. |
|
Working with graphics in HTML documents ............................................ |
|
Laboratory work number 4 CSS technology. |
|
Designing the design of the Web site .............................................. |
|
Laboratory work number 5 Creating interactive |
|
HTML documents ............................................... ............................... |
Laboratory work number 1 HTML document structure.
Formatting HTML document
Operation: Creating and testing an HTML file. The concept of containers, pairs and unpaired tags and elements.
Hypertext Markup Language (HTML) is standard,
designed to create hypertext documents in the Web environment. HTML documents may be viewed various types Web browsers. When the document is created using HTML, the WebBrazer can interpret HTML to highlight the various elements of the document and primary processing. Using HTML allows you to format documents for their presentation using fonts, lines and other graphic elements on any system viewing them.
HTML documents can be created by any text editor or specialized HTML editors and converters. HTML documents are posted on web sites.
Web node is a special folder in which files containing text information on any topic in HTML format are posted, as well as information in the form of drawings, graphs, photos, animation images and sound effects. There are two types of web sites:
The Internet service provider is created on the web server. Created in the intranets as a group's web nodes.
Project creation sequence
The process of creating a project consists of several stages.
At the first stage, before proceeding to the creation of the project, it should be determined with its functional purpose and the thematic orientation of the information material.
At the second stage, a decomposition of the general topic is usually held on thematic subsections and individual articles with the definition of links between them. The result of such a decomposition is to create a project structure.
HTML document structure
HTML documents may have a different structure that includes various elements, but they all must contain two required elements:
Page header section - Head.
Body document - Body.
Section headerit serves to describe the general properties of the page, such as the title page (name) of the page, which will be displayed in the browser window name line, Meta - design and descriptions of style sheets. Meta - instructions are used to specify the parameters that are necessary for search engines.
In HTML, only one concept is the tag (from the English Tag). Tag is a combination of characters between asymmetric signs "<" и ">".
There are two main varieties of tags:
Pair Tags - require the presence of a closing tag. The opening and closing tags form a container within which information is located.
Examples:< b >…, < p >…
Unpaired tags - do not have a closing tag.
Examples:< img />, < hr/ >, < br/ >.
Tag parameters are specified only for the opening pair and unpaired tag. They are located inside the body of the tag and surround the spaces. Each tag has its own set of parameters. The order of enumeration of several parameters inside the tag may be arbitrary. The presence of quotes when specifying the parameter value.
Comments are designed to explain the purpose of the HTML code fragments and are drawn up as follows: And they can take several lines.
Tags can be invested in each other. In this case, it is important to comply with the sequence of opening and closing:<тэг1><тэг2><тэг3>textзакрытие тэга3>закрытие тэга2>закрытие тэга1>
The structure of the HTML document is as follows:
Document header
Body of the document
Tag is a sign that this file Contains the HTML document. All Web documents begin with it, and, finding
Tags
Limit the section headers section. This section does not include the actual document. It includes only tags (and specially intended for this section), which relate to the document as a whole. The same section includes a document header that is set using a tagTag
in browser window and is the contentweb pages.
With tag< font> You can set the color and size of the text. The color of the text is set by the color attribute, and the size of the size attribute. For example:
Headlines
Any Web page can consist of parts, part of chapters, chapter-of-paragraphs and so on. Such a hierarchical structure consists of several levels, and each of the levels has its own headlines. Font dimensions that are displayed headers different levelsmay be different. Make it very just with the help of pair tags
.... The biggest title font is set by tags and
. For example:
and
. For example:Part 1.
Chapter 1.
The header of the third level to which the tag is true
, very close to normal (ordinary) font. Tags , , Create small headlines.
, Create small headlines.
The headlines can be placed in the center of the screen, and you can also attach them to the edge of the page (right or left). In order to do this, apply the Align \u003d "" attribute inside the title tag. For example:
Alignment in the center
Alignment to the left edge.
1. Familiarize yourself with theoretical material.
2. Download a notepad program.
3. Create an HTML document that is displayed in the browser window, as shown in Fig. 1.
Fig. 1. Example Creating an HTML file using simple tags
Listing document
HEY! This is my personal home page! My name is
(Specify your surname, name and patronymic).
(Specify your surname, name and patronymic).
My city
I live in Belgorod
My group
I study in ……
My hobbies
My hobbies music, Sport.
My friends
My friends in all me help.
5. Open the file in the browser window and if there are shortcomings, eliminate
6. Perform the task.
Create an HTML document and place the text in it by saving it formatting. Headers Highlight in red, place in the center and separate the horizontal line. Words printed, italic highlights blue. Save the filed file with the * .html extension. Check out the document in the browser window and, if there are flaws, eliminate them.
Control questions
1. What kind of types do you knowHTML tags?
2. List the tags that are most commonly used in the WEBASTER header.
3. How to change the level of alignment in the opening tag of paragraph?
4. Using what tag can you set the headers of all six levels?
5. What can be created using Title tag?
6. What tags need to be applied to obtain crushed bold texts?
7. Explain the following code fragment Cheerful html
8. What happens if tag Will it turn out not closed?
Laboratory work number 2 Lists are simple and invested. Creating HTML Tables
The goal of the work: with the Location and Testing HTML file. Creating lists. Insert tables and their structure. Page Maketling using tables.
Brief theoretical information
There are three main types of lists in the HTML document: a numbered labeled list of definitions
We can create invested lists using various lists tags or repeating one inside the others. To do this, you just need to place one pair of tags (starting and final)
inside another. Whether elements of the attached list will have the same markers denoting the list item - depends on the browser. Look in detail in the "Entended Lists" section.
Numbered lists
In a numbered list, the browser automatically inserts the numbers of the elements in order. This means that if you delete one or more elements of the numbered list, the other numbers will automatically be recalculated.
The numbered list begins by the starting tag
- And ends tag
1. Programming
2. Algorithmization
3. Design
Tag
- May have parameters:
- Programming
- Algorithmization
- Design
- . For example:
- Programming
- Algorithmization
- Design
- Programming
- Algorithmization
- Design
- Term
- Definition of the term
- Term
- Definition of the term
where: Type - Type of Counter:
A - Large Latin Letters (A, B, C ...) A - Little Latin Letters (A, B, C ...) I - Large Roman Figures (I, II, III ...) I - Small Roman Figures (I, II, III ...) 1 - ordinary numbers (1,2,3 ...)
sTART \u003d "N" is a total from which the counting begins for example:
XV Programming
XVI. Algorithmization
XVII. Design
Marked lists.
For label lists, the browser usually uses markers for marking the list item. Type of Marker, as a rule, configures a browser user.
The label list begins by the starting tag
- And ends tag
Programming
Algorithmization
Design
Tag
- May have a parameter:
Tag type
- Determines appearance Marker as a default view (DISC), round (Circle) or square (Square). For example:
Programming
Algorithmization
Design
Lists of definitions.
< dl>… dl> - Pair Tag - displays lists of definitions.
Design:
With tag
- You can use the Compact attribute to set a more compact location of the list items.
Design:
Tables in HTML are organized as a set of columns and lines. Cell cells can contain any HTML elements, such as headlines, lists, paragraphs, figures, graphics, and form elements.
Basic Tags Table Table:
These are the main tags describing the table. All items of the table must be inside these two tags. By default, the table does not have framing and separators. The framing is added by the Border attribute.
Table row:
The number of rows of the table is determined by the number of participated pairs of tags
Table cell:
Describes a standard table cell. The table cell can only be described inside the table row. Each cell must be numbered by the speaker number for which it is described. If there is no one or more cells in the row for some columns, the browser displays an empty cell. The location of the data in the default cell is defined by the attributes Align \u003d "Left" and Valign \u003d "Middle". This location can be corrected both at the level of the string description and at the level of the cell description.
Any cell of the table can be determined not tags
it is a conventional cell, but the text inside these tags will be highlighted in bold and centered.
Signature:
This tag describes the name of the table (signature). Tag
determines where the table will be applied on top or bottom. The signature is always centered within the framework of the table width.
Basic Attributes Border Table
This attribute is used in TABLE tag. If this attribute is present, the table boundary is drawn for all cells and for the table as a whole. Border can take a numeric value that determines the width of the boundary, for example Border \u003d "3".
knight with barrel September 19, 2012 at 11:16Errors to avoid when writing HTML code
Everyone who works every day with HTML must be very attentive, as it is not so easy to follow all the HTML rules. This is very important, since the HTML validator finds everything, even minor, flaws, and you get the page code with errors. Today we will try to pay attention to the most common of them. I am confident that the proposed recommendations will be very useful to many, and especially beginners, developers. So welcome under
Wrong nesting HTML tags
It is very important to correctly close everything. HTML Tags. They must close in reverse order Compared with how they were open. Most newbies do not pay due attention. If tags are closed in the wrong order, then you will receive errors in validation, and some styles may not be used. Be careful!
Error
CalcularlyUsing block elements inside the lower case
All who at least a little used HTML in practice I know that the element can be displayed or as a block or as a string. Block elements including paragraphs and partitions must contain lowercase. This is a logical document strest, so make sure your code corresponds to it.