HTML here I come!

Introduction to HTML

HTML is the acronym for HyperText Mark-up Language, which means hypertext markup language HTML is not a programming language, but a markup language Hypertext refers to hyperlinks, and markup refers to tags , is a language used to make web pages. This language is composed of tags one by one. A file made in this language saves a text file with the extension . html or .htm html document is also called a web page, which is actually a web page. When an html file is opened with an editor, it displays text, which can be edited in the form of text. If it is opened with a browser, the browser It will render the file into a web page according to the content of the tag description, and the displayed web page can jump from one web page link to another web page

Basic HTML syntax and text tags

Basic grammar and text labels

HTML formatting tags and image tags

Formatting tags and image tags

Hyperlink Labels and Table Labels

Hyperlink Labels and Table Labels

HTML form tags

HTML form tags HTML frame tags

development history

insert image description here

HTML document type settings:

The setting of the document type of HTML under different versions, that is, the attribute value corresponding to <!Doctype>
(1) HTML , corresponding to the early HTML4.0.1, its basic structure is as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
 <head>
 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 <title>Document</title>
 </head>
 <body>
 </body>
</html>```
(2) XHTML ,其基本结构如下:

```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 <title>Document</title>
 </head>
 <body>

 </body>
 </html>

(3) HTML5, its basic format is as follows

 <!doctype html>
 <html lang="en">
 <head>
 <meta charset="UTF-8">
 <meta name="viewport"
 content="width=device-width, user-scalable=no, initial-scale=1.0,
maximum-scale=1.0, minimum-scale=1.0">
 <meta http-equiv="X-UA-Compatible" content="ie=edge">
 <title>Document</title>
 </head>
 <body>

 </body>
 </html>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324099070&siteId=291194637
Recommended