html - root element that starts & ends a page
head - instructions for browser ( not visible except <title>)
body - all visible content goes here
<!DOCTYPE html>
<html>
<head>
<title>Page title goes here</title>
</head>
<body>
Content goes here!
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Example of a Web page</title>
</head>
<body>
<h1>Title</h1>
<!-- Comment-->
<p>The first paragraph.</p>
<p>The second paragraph.</p>
</body>
</html>
HTML-document tag lies in <html> and </ html>
Between these tags are two sections:
What is <head>
What is <body>
<head> (auxiliary part, helps the browser to work with the data)
- Describe the document - <title>
- Connect the system files to the document (css / js, library, favicon, etc.) - <link>
- Keywords, description meta tags, encoding, and others. - <Meta>
</ head>
<body> (document body) - There is written the information to be displayed on the screen:
</ body>
Defining a description for your page
<meta name="description" content="Web tutorial">
Defining keywords for your page
<meta name="keywords" content="HTML, JavaScript, VBScript">
Each type of tag affects the text inside of it in a different way
Some tags, including < div> and < span> hardly affect their inner text. We use them for organizational and reference purposes, such as separating a piece of text from its surrounding text so that we can style it (e.g. make it blue).
They are used to enhance the ability of individual tags, and to add more flexibility to manage the contents of the container.
Tags can have attributes. Attributes can provide additional information about the HTML elements on
your page. The <tag> tells the browser to do something, while the attribute tells the browser how to do it. For instance, if we add the bgcolor attribute, we can tell the browser that the background color of your page should be blue, like this: <body bgcolor="blue">.
HTML defines the elements on a webpage, and CSS defines the design of those elements.
Let's break that concept apart:
To tell the browser what encoding symbols are Web pages, you must set the .
<!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>
For the Windows operating system and Cyrillic charset usually takes the value of utf-8 or windows-1251
<meta http-equiv="Content-Type" content="text/html; charset=encoding name">
<Ul> tag sets a bulleted list. Each entry must start with the tag <li> (list item)
<ol> tag sets a numbered list. Each entry must begin with a <li> tag
One list can be nested into another list
Tag <dl> (definition list) creates a list of definitions. It includes the tag <dt> - is what we want to describe and tag <dd> is where we write the definition of the term.
<div> element is a block element and is intended to highlight the fragment to change the type of content. Typically, the form block is controlled via styles. By itself (without attributes and styles css), <div> tag does not affect the elements of html pages
The HTML <p> element defines a paragraph.
Generally, the units share the text paragraphs (paragraphs). By default between paragraphs there is a small vertical indentation called margin.
Tag <hr> adds a horizontal rule
It is a block element
It doesn't have a closed tag
Any table consists of rows and cells that are set using the tag <tr> and <td>
Most of these elements are not used anymore. Text formatting is usually done using CSS
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.
<div> - section of the document
<h1> - <h6> - headlines
<li> - list item
<p> - the paragraph / paragraph
<ul> - bulleted list
<ol> - numbered list
<dl> - a list of definitions
<table> - table
<tr> - creates a row in the table
<a> - creating links
<b> - bold font sets
<br> - newline
<i> - sets the italic font
<span> - a versatile line element
<th> - creates a header cell in a table
<td> - creates a table cell
<sup> - displays the font as a superscript
<!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>
To set background to the element use style attribute
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:
http://htmlbook.ru/samhtml - За исключением темы фреймы
Сверстать страницу по этому макету. Для текста можно использовать сервис http://ru.lipsum.com/