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)
The information on Baidu is so diverse that it...
Table of contents Preface: 1. Introduction to Nav...
This article shares the specific code for JavaScr...
Table of contents 1. MySQL data backup 1.1, mysql...
Solution to the data asymmetry problem between My...
background Use idea with docker to realize the wh...
1. Leading fuzzy query cannot use index (like ...
1 Introduction In the article "Start Postgre...
This article introduces the effect of website pro...
Note When developing an article display list inte...
Linux has been loved by more and more users. Why ...
I'll record the problems I encountered during...
Environment Introduction Operating system: centos...
Library Operations Query 1.SHOW DATABASE; ----Que...
A root routing component (the root routing compon...