<!DOCTYPE html>
<html>
<head>
<title>Page title goes here</title>
</head>
<body>
Content goes here!
</body>
</html>
What is <head>
What is <body>
Defining a description for your page
Defining keywords for your page
<meta name="description" content="Web tutorial">
<meta name="keywords" content="HTML, JavaScript, VBScript">
HTML elements
HTML tags
An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag. The following is a paragraph element:
<p>This is the content of the paragraph element.</p>
Tags are used to mark up the start and end of an HTML element.
<p></p>
Let's break that concept apart:
To tell the browser the encoding of symbols on web pages, you must set the special meta tag.
<meta http-equiv="Content-Type" content="text/html; charset=encoding name">
For the Windows operating system and Cyrillic charset usually takes the value of utf-8 or windows-1251
<!DOCTYPE html>
<html>
<head>
<title>Encoding</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<p>
Cyrillic
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Encoding</title>
</head>
<body>
<p>
<!-- Comment -->
</p>
</body>
</html>
Any table consists of rows and cells that are set using the tag <tr> (table row) and <td> (table data)
Most of these elements are not used anymore. Text formatting is usually done using CSS
Breaks the line where this tag is placed
Span is universal inline element. It does not do anything
These elements are shown as rectangles extending each other downwards.
This element takes up the entire available width, the height of the element is determined by its contents, and it always begins on a new line.
These are the elements of the document that are just part of a string.
These elements are arranged one behind the other in the same row, if they don't fit in their parent, it is transferred to another line.
To set background to the element use style attribute
<!DOCTYPE html>
<html>
<head>
<title>Encoding</title>
</head>
<body style="background-color: #cccccc;">
<p style="background-color: rgb(0,255,0);">
Text
</p>
</body>
</html>
Validation is a checking of a document by the special program - validator to compliance with the web standards and detection of existing errors. These standards are called specification (developed by the World Wide Web Consortium or abbreviated W3C).
Work validator is as follows: first, determine the type of document (specified with the <! DOCTYPE>), and then for the correctness and error-checked HTML-code. At the same time as checks for proper use of the name tags of their nesting.
If at least one of the tests is not successful, then HTML is considered as invalid
The main argument for the validation of HTML is the provision of cross-browser compatibility
Validation is too strict, and does not correspond to specified requirements for websites
It will help you to:
Layout this page. For text generation you can use http://ru.lipsum.com/
http://htmlbook.ru/samhtml - Except "Frame" topics