The acronym HTML stands for HyperText Markup Language. HTML is not a programming language, it is a markup language for a site.
All browsers can convert this markup into a user-friendly view.
This language uses special commands called tags. Each tag has its own function. There are a huge number of tags. Ideally, you need to learn everything. But for a novice developer, basic knowledge is enough.
Basic HTML Commands
The list of HTML commands is very long. But the core is not so much. In order to start writing code, you need an editor. You can use Notepad. Using Notepad ++ is recommended. He looks like this.
, , . HTML . . - .
HTML . . - . , . , .
<html> </html>. , , "/". , . . . .
<html> . . . , , .
: head body.
HTML- . . .
. Head - . , . body - . , . , .
:
:
<link rel = “stylesheet” href = “style.css” type = “text/css”>
:
<script type="text/javascript" src='main.js'></script>
. :
<title> </title>
. .
. <p></p>. <span></span>.
, "":
- <i></i>
- <strong> </strong>
- <s> </s>
- <u> </u>
. , .
HTML-. . <h1> </h1>. 1 6. , .
.
, h1. <title>. , 200 h1, .
-. , - .
, , .
HTML-, - . , .
<a>. . , href, .
, , , . , .
(, , ).
. . .
:
<table width="100%" border="1">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
width . . Border .
. tr . td . - .
. align, : Left, Center, Right. .
HTML- ( ) . .
HTML-, . , Word.
Html (). .
<ul>
<li></li>
<li></li>
<li></li>
</ul>
:
| HTML |
| <ul type="disc">
<li>...</li>
</ul> |
| <ul type="circle">
<li>...</li>
</ul> |
| <ul type="square">
<li>...</li>
</ul> |
, <ul>, <ol>.
:
- "1" – 1, 2, 3 ...
- "A" – A, B, C ...
- "a" – a, b, c ...
- "I" – I, II, III ...
- "i" – i, ii, iii ...
.
, start, . , 10- 20- .
HTML- , . head: <link rel = “stylesheet” href = “style.css” type = “text/css”> .
, . . , . , . .
, 20 HTML 2 . , . , 20 .
.
.