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)
Table of contents Understanding SQL Understanding...
Table of contents 1. Why do we need unit testing?...
Detailed introduction to the steps of installing ...
Today I happened to be helping a friend move his ...
When we develop a web project with Django, the te...
The component lifecycle is usually where our busi...
MySQL's CAST() and CONVERT() functions can be...
Method 1: Install the plugin via npm 1. Install n...
This article shares the specific code of js to im...
1. Environmental preparation: Operating system: C...
This article shares the specific code of js to ac...
1. Preparation Middleware: Tomcat, Redis, Nginx J...
Through the study and application of Node, we kno...
1. Download MySQL database and install and config...
Preface We all know that MySQL query uses the sel...