HTML-Introduction to Study Notes

Introduction to HTML5

HTML5 is the latest revision of
HTML HTML: HyperText Markup Language (English: HyperText Markup Language, abbreviated: HTML) is a standard markup language used to create web pages.
[Note]: HTML is not sensitive to size

HTML editor

1. Visio Studio
2. HBuild
3. Sublime Text
editor is not the focus, even if you use txt, you can write web pages.
These three development environments are easy to install, no pit
[Note]: For beginners, the browser is recommended to use Chrome, compatible Strong

Basic structure of HTML file

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
</head>
<body>
    <h1>我的第一个标题</h1>
    <p>我的第一个段落。</p>
</body>
</html>

【Note】:

  1. Compared with HTML, header declaration reduction is easier
  2. A page can be divided into the following units: tags, attributes, elements, styles, scripts.
    In short: with <> as tags, and other content within the tag name as attributes, followed by <> or by /> surrounded by elements; style is CSS; script is JS
以上述代码为例 
1、标签:<html>、<head>、<body>、<meta>、 <h1>、 <p>
2、属性:charset
3、样式:无
4、脚本:无

Guess you like

Origin blog.csdn.net/Christina_cyw/article/details/112853378