Open the irbis tablet. How to open the tablet cover? Disabling loops and wires
Any document has three components:
- content;
- structure;
- style.
Typically, the contents of a document are not presented in any order, but have a certain structure . Structure is the composition and order of parts (blocks) of a document.
Style document determines the form of output of its contents to a particular device (for example, a printer or display). The concept of style includes the characteristics of the font (name, size, color) of the entire output document or its individual blocks, the order of pagination, the location of blocks on pages and other parameters.
Document markup languagesare artificial languages designed to describe the structure of a document and the relationships between various objects of the structure. Markup data is also called metadata
The first markup language is GML language .His immediate heir was SGML language a standard generalized markup language that defines the rules for writing document markup elements.
document markup language requirements:
- The language must be human readable.
- Marked up document files must be text and encoded using code symbols ASCII
- The language can use links to both internal resources (in the same document) and external resources (in other documents).
In SGML and similar languages use special document markup tools:
- document structure;
- descriptors or elements and their associated attributes;
- entities;
- comments.
SGML Docs have a tree structure.
Descriptors in SGML placed at the beginning (opening descriptor) and at the end (closing descriptor) of each element (item).
Attributes these are simple symbolic constructions ( items ), which are added to elements to clarify the effect of the descriptors.
Generic markup languages like SGML , allow the use of attributes that can be associated with up to 15 different types of values, including:
- References to any resources outside the document that are typically referred to as entities ( entities).
- Unique identificator ( ID ) element in the document.
- Identifier pointers ( ID Pointers ), having cross-references for those elements that have ID mentioned in the document.
- Designators or element attributes that define the designations in the element's content.
- Character data ( character data), or CDATA , which are any valid characters that cannot act as attribute values.
Comments allow you to add information that will not be visible after processing the document. Comments do not affect the speed of document processing and are not considered or processed as part of the content SGML -document. They are simply included in the source text.
To check the compliance of a document with a given type of markup, special programs are used analyzers (parsers). Parsers are either standalone programs or part of an SGML document processing program. In order for the parser to perform document verification, a special document is created calleddefining the document type
HTML language is a language application SGML for use in Internet with a fixed structure, a fixed set of elements (descriptors) and their attributes, as well as a fixed set of entities. advanced markup language XML (Extensible Markup Language). XML language is a subset of the language SGML , fully compatible with it.
XML provides a wide range of functionality that is not available in HTML
4 . 3 .2. HTML versions and extensions XML
First version hypertext markup language HTML (HyperText Markup Language), just like the Web technology itself, was developed by Tim Berners Lee in 1991. HTML languageis an implementation of the SGML language rules for a document type that has been named documents HTML. The language specifies a fixed structure, a fixed set of tags and their attributes, and a fixed set of entities. HTML document processing programs are called Web-browsers . The result of document processing is Web-page , displayed on the display screen.
In 1994, the Internet Support Group IETF ( Internet Engineering Task Force) developed the HTML 2.0 specification, which began the widespread use of HTML on the Internet Internet . In the same year, the W3C (World Wide Web Corporation) consortium was created, uniting 165 commercial and academic organizations, developers and users (from its creation to the present, this organization has been headed by T.B. Lee). The latest version of the HTML specification, HTML 4.01, was adopted by the consortium in December 1999.
- XML provides a wide range of functionality that is missing in HTML
The latest version of the XML language specification, XML 1.1, was adopted in April 2004.
Based on the XML language, the W3C concern has developed a further development of the language HTML XHTML language (Extended HTML extended HTML). The first version of this language, XHTML 1.0, was adopted in January 2000. This version is actually a reformulation of HTML 4 as an application of XML 1.0. It is expected that further development of the HTML language will be carried out in accordance with the XHTML specifications.
A new version of XHTML, XHTML 1.1, was adopted by the W3C in May 2001. This recommendation defines a new module-based XHTML document type. Each XHTML 1.1 module contains one or more HTML language elements and/or attributes.
According to the specification, documents XHTML 1.1 consists of the following groups of modules XHTML:
Core modules are modules that are required to be present in any document type that conforms to the XHTML specification (this group includes modules Structure, Text, Hypertext and List).
Applet module containing a single element< applet > (this element has been deprecated and it is recommended to use the element instead< object > ).
Text extension modules, which define various additional text markup modules (this group includes modules Presentation, Edit and Bi-directional Text).
Form modules (this group includes modules Basic Forms and Forms).
Table modules (this group includes modules Basic Tables and Tables ).
Image module , which provides basic image embedding capabilities (this module can also be used independently in some implementations by client image cards).
Client - side Image Map module , which provides elements for client image maps (for this module to function, the module must be enabled Image).
Object module , which provides support for including general-purpose objects.
Frames module , which provides elements related to frames.
URL (this element calculates relative document URLs).
Name Identification Module , used to identify certain elements in HTML documents.
Legacy module , which defines elements and attributes that were no longer recommended in previous versions of HTML and XHTML and are no longer recommended.
4 . 3 .3. Types of HTML and XHTML structures
According to specification HTML 4.01 for documents HTML defines three structures , described by three DTDs. Developers Web -pages must include one of three type declarations in their documents. The difference between DTDs lies in the elements they support. Announcement DTD should be placed at the very beginning of the document.
HTML 4.01 Strict DTD (strict definition) includes all elements and attributes that are not canceled ( deprecated ) and are not used in documents with frames.
HTML 4.0 Transitional DTD Definition (transitional definition) includes all elements included in the strict DTD , as well as canceled elements and attributes.
HTML 4.0 Frameset DTD Definition (definition for frames) includes, in addition to elements of the transition DTD, frames.
First line of document HTML , defined in accordance with the specification XHTML
This line specifies the version to use XML and document character encoding. When encoding characters in XML double byte code is used Unicode . As parameter values encoding most commonly used encodings UTF-8 , in which the values of the first 128 characters are represented in one-byte encoding, characters of the most common languages (including Russian and Ukrainian) are represented in two bytes, and the remaining characters are represented in three bytes. Encoded UTF-16 all characters are represented by two bytes (these encodings are recommended for Russian and Ukrainian documents HTML).
Markup languages
Markup language(text) in computer terminology, a set of characters or sequences inserted into text to convey information about its output or structure. Belongs to the class of computer languages. A text document written using a markup language contains not only the text itself (as a sequence of words and punctuation marks), but also additional information about various parts of it - for example, an indication of headings, highlights, lists, etc. In more complex In some cases, markup language allows you to insert interactive elements and content from other documents into a document.
It should be noted that markup language is Turing incomplete and is not generally considered a programming language, although strictly speaking it is.
HTML (from English) HyperText Markup Language-- “hypertext markup language”) - developed by British scientist Tim Berners-Lee around 1986-1991 at the European Nuclear Research Center in Geneva (Switzerland). HTML was created as a language for the exchange of scientific and technical documentation, suitable for use by people who are not specialists in the field of layout. HTML successfully dealt with the complexity of SGML by defining a small set of structural and semantic elements called descriptors. Descriptors are also often called "tags". Using HTML, you can easily create a relatively simple but beautifully designed document. In addition to simplifying the document structure, hypertext support has been added to HTML. Multimedia capabilities were added later.
Initially, the HTML language was conceived and created as a means of structuring and formatting documents without linking them to reproduction (display) tools. Ideally, text with HTML markup should have been reproduced without stylistic and structural distortions on equipment with different technical equipment (color screen of a modern computer, monochrome screen of an organizer, limited-sized screen of a mobile phone or device, and programs for voice playback of texts). However, the modern use of HTML is very far from its original purpose. For example, tag
tells the browser that this is an HTML document | |
here is information for search engines | |
content is displayed in the browser window | |
page title | |
Headings: from largest to smallest | |
Bold and italic text highlighting | |
link text | Tells the browser that this is a link with the text " link text« |
|
Creating a new paragraph |
|
paragraph alignment ( left, right, justify or center) |
Tells the browser to create the form |
This table is provided to show only the main descriptors.
In the modern version of HTML5, along with new tags, a huge number of new features have appeared that website developers never dreamed of 10 years ago.
Styles in an html document
When a browser displays the content of a web page, it displays headings in one style, paragraph text in another, and different font sizes. This is enabled by default in every browser. But we want to see individual designs for web pages, and CSS comes to the rescue here. Cascading Style Sheets Language. Using CSS, you can set the design of any element, you can create any design for a web document.
CSS is a styling addition to the HTML language and would not exist without it.
Styles in Html are implemented like this:
Head>
If an external style file is used styles.css, then it connects to the html document like this:
Example of writing CSS rules:
p(color: black; font: x-small).
Tells the browser what the paragraph color is
black- black, and the font size is x-small(small)
This is how, for example, I style the content at the beginning of each article on this blog.
Announcements
(border: 2px outset green;
border-radius: 10px;
width: 360;
font-family: "Yeseva+One";
font-size: 16px;
line-height: 1.2em;padding:10px 10px 10px 20px;
margin:10px auto 20px;
text-align:left;
background-color: #a7cece;
}
there is an interesting fragment in the last line: background-color: #a7cece;
#a7cece – this is the html color. Using the HEX character set - the hexadecimal system: numbers from 0 to 9 and letters from A to F, you can set absolutely any color. A nice aquamarine one is set here.
I will return to the topic of CSS in separate publications.
How to Learn HTML Markup Language
- The Internet is full of reference books on HTML (html). I like the site http://htmlbook.ru. I come here often for reference material. I recommend it to save time.
- Andrey Bernatsky. Be sure to check it out!
- I like books from American authors. This is the most fascinating HTML/CSS language tutorial with such a cool presentation of the material that you will read without stopping. Everything is told simply and clearly. It can be downloaded for free on the Internet, but it is better to buy it and work with it like a book.
The best way to master the HTML markup language (HTML) is to download the most famous training courses on the RuNet, and some of them are completely free. Go to Evgeniy Popov’s website and download tons of useful educational information. For professional training, read the information.