Introduction to HTML HyperText Markup Language: Hypertext Markup Language HyperText: Hypertext (text + pictures + video + audio + links) Markup Language: Three elements of a website Image, hyperlink, text HTML Basic Structure XML/HTML CodeCopy content to clipboard
Standard HTML tags for web pages 1. HTML document declaration: <!DOCTYPE HTML> 2. Page title: <title>~</title> 3. Page encoding: <meta charset="utf-8" /> UTF-8 is a multi-language encoding (recommended) gb2312 is the simplified Chinese encoding
Main content of the page: <meta name="description" content="Content introduction" /> Note: The meta tag is an auxiliary tag of the HTML language, usually used to optimize search engines. It is located in the head of the HTML document. Generate the initial structure of the HTML document 1. HTML5 standard structure: html:5+Tab key or !+Tab key The generated results are as follows XML/HTML CodeCopy content to clipboard
2. HTML4 transitional structure: html:xt+Tab key The generated results are as follows XML/HTML CodeCopy content to clipboard
Note on HTML tags: • HTML elements consist of start tags and end tags. • The text enclosed between the start and end tags is the content of the element. • HTML tags must have a beginning and an end. If it is a tag with no content (empty tag), use /> to end it. • Tag names are not case sensitive, but in XHTML tag names must be lowercase. • Tags have attributes, which are used to represent the properties and characteristics of the tags. Attributes are specified in the opening tag. The above comprehensive understanding of the basic structure of HTML is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. Original URL: http://www.cnblogs.com/mossbaoo/archive/2016/07/31/5724065.html |
<<: Implementing a simple Christmas game with JavaScript
>>: Pure CSS and Flutter realize breathing light effect respectively (example code)
Remark: The amount of data in this article is 1 m...
How Nginx works Nginx consists of a core and modu...
Table of contents TOKEN Timer Refresher 2. Intern...
Table of contents Preface Lua Script nignx.conf c...
Linear-gradient background-image: linear-gradient...
Based on Vue and native javascript encapsulation,...
Introduction: MySQL database recovery by time poi...
Recently, when I was writing a WeChat applet, the...
1. Create and run a container docker run -it --rm...
Note: This method is only applicable to webkit-ba...
I have read countless my.cnf configurations on th...
Table of contents 1. What is a template string? 2...
I had been using MySQL 5.7 before, but because My...
Table of contents 1 Test Cases 2 JS array dedupli...
Table of contents 1. Basic principles 2. Specific...