current position:Home>[youth training camp] - different HTML
[youth training camp] - different HTML
2022-01-27 03:47:09 【hotpotliu】
Signed up for the first youth training camp , I learned it again on the first day HTML .
I used to think HTML Just those labels ,HTML It's the simplest of the three piece sets , But in fact, after listening to the youth training camp class , I found myself right HTML The understanding is not comprehensive , There are many things you don't know clearly ;
for instance <script> label , I knew what was inside JS It will block DOM Structure analysis , So put it in <body> At the back of , But I don't know it has properties (defer) It can make JS You can synchronize downloads and postpone execution ;
Then there are semantic tags , Although I know semantic tags , Semantic tags are good for adapting to all kinds of devices and SEO , But I've hardly used them ~~ , Maybe I'm too low , I haven't reached that level yet .
In order to deepen memory and promote learning , Taking notes must be essential , Since there is this activity of posting articles , Then I'll send out my notes , To encourage ~, You come on .
1、 Markup language and programming language
HTML Is the abbreviation of hypertext markup language ; Hypertext refers to text that contains links to other text ; It belongs to markup language ; By Bonas - Li proposed , And now by W3C maintain ;
-
Markup language
Assemble the text and other information related to the text , Show the document structure ;
Examples of markup language :HTML、XML、KML、Markdown;
-
programing language
A language with logical ability ;
2、HTML5
HTML5 stay 2015 Launched in 2013 ; It improves the previous document structure, which is too dependent on div The shortcomings of ;
- HTML5 The advantages of
- Semantic tags , Easy to understand and conducive to SEO Optimize ;
- Uniform standard , The compatibility problem between Rovers is solved ;
- More API;
3、HTML elements of grammar
-
<!DOCTYP html>
<!DOCTYP> Used to declare the use of HTML edition ,<!DOCTYP html> Used to declare that HTML5.
-
<meta> label
Source data label , Data that describes data ;
- Common properties
- charset: Define the character encoding method ;
- name: A brief description of the page information ; Common values are keywords、description、viewport( It's mainly used in mobile terminal , Defines the area on the device screen where web pages are displayed );
- http-equiv: to http Add some information to the header , Such as setting the expiration time of the web page 、 Set up cookie
- Other customizations meta Information ;
- Common properties
-
<title>
The page title
-
<link>
- Common properties
- shortcut icon: Specify... Next to the page title logo
- stylesheet: Link to style sheet
- alternate stylesheet: Replaceable style sheets , Not all browsers support ( If you use Firefox Experience it. )
- Common properties
-
<script>
Used to import external script files ;
-
classification
- <script>: Download script files now , Execute immediately after downloading , It will block dom analysis ;
- <script defer>: Download script files now , This Boolean property is set to inform the browser that the script will be parsed after the document is parsed , Trigger
DOMContentLoaded (en-US)
Before the event .; - <script async>: For normal scripts , If there is
async
attribute , So normal scripts are requested in parallel , And analyze and execute as soon as possible . about Module script , If there isasync
attribute , Then the script and all its dependencies will be executed in the deferred queue , So they will be requested in parallel , And analyze and execute as soon as possible .
-
-
Semantic tags
The use of semantic tags is conducive to understanding and SEO Optimize ; Let people and machines understand you better ;
Block semantic tags :
- <header>
- <nav>
- <article>
- <section>
- <aside>
- <footer>
Group class semantic label
- <figure>: The content of the package that is independently referenced : Chart 、 illustrations 、 Code etc.
- <figcaption>: Corresponding <figure> Description of ;
- <blockquote>: Block level reference elements ,cite Property specifies the source url;
- <dl>、<dt>、<dd>: Used to describe a set of key value pairs , Usually used for metadata 、 Definition of terms and other scenarios ;
Text semantic tags
- <cite>: Usually used for the title of a work ;
- <time>: Used to surround time 、 date , By designation datatime Property to set the time and date corresponding to the text ;
- <address>: Contact information ;
- <mark>: Use... In references , Indicates that attention needs to be paid to ;
- <code>: code snippet ;
- <small>: disclaimer 、 matters needing attention ;
-
Multimedia tags
- <img>
- <picture>: By including 0 Or more <source> Label to provide corresponding image versions for different sizes of display screens ;
- <video>
copyright notice
author[hotpotliu],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270347038385.html
The sidebar is recommended
- Spring IOC container loading process
- [thinking] the difference between singleton mode and static method - object-oriented programming
- Hadoop environment setup (MySQL environment configuration)
- 10 minutes, using node JS creates a real-time early warning system for bad weather!
- Git tool
- Force deduction algorithm - 92 Reverse linked list II
- What is the sub problem of dynamic programming?
- C / C + +: static keyword summary
- Idea does not have the artifacts option when configuring Tomcat
- Anaconda can't open it
guess what you like
-
I don't know how to start this
-
Matlab simulation of transportation optimization algorithm based on PSO
-
MySQL slow log optimization
-
[Vue] as the window is stretched (larger, smaller, wider and higher), the text will not be displayed
-
Popular Linux distributions for embedded computing
-
Suzhou computer research
-
After installing SSL Certificate in Windows + tomcat, the domain name request is not successful. Please answer!!
-
Implementation time output and greetings of jQuery instance
-
The 72 year old uncle became popular. Wu Jing and Guo fan made his story into a film, which made countless dreamers blush
-
How to save computer research
Random recommended
- Springboot implements excel import and export, which is easy to use, and poi can be thrown away
- The final examination subjects of a class are mathematical programming, and the scores are sorted and output from high to low
- Two pronged approach, Tsinghua Professor Pro code JDK and hotspot source code notes, one-time learning to understand
- C + + recursive knapsack problem
- The use of GIT and GitHub and the latest git tutorial are easy to understand -- Video notes of crazy God speaking
- PostgreSQL statement query
- Ignition database test
- Context didn't understand why he got a high salary?, Nginxfair principle
- Bootstrap switch switch control user's guide, springcloud actual combat video
- A list that contains only strings. What other search methods can be used except sequential search
- [matlab path planning] multi ant colony algorithm grid map path planning [including GUI source code 650]
- [matlab path planning] improved genetic algorithm grid map path planning [including source code phase 525]
- Iinternet network path management system
- Appium settings app is not running after 5000ms
- Reactnative foundation - 07 (background image, status bar, statusbar)
- Reactnative foundation - 04 (custom rpx)
- If you want an embedded database (H2, hsql or Derby), please put it on the classpath
- When using stm32g070 Hal library, if you want to write to flash, you must perform an erase. If you don't let it, you can't write continuously.
- Linux checks where the software is installed and what files are installed
- SQL statement fuzzy query and time interval filtering
- 69. Sqrt (x) (c + + problem solving version with vs runnable source program)
- Fresh students are about to graduate. Do you choose Java development or big data?
- Java project: OA management system (java + SSM + bootstrap + MySQL + JSP)
- Titanic passenger survival prediction
- Vectorization of deep learning formula
- Configuration and use of private image warehouse of microservice architect docker
- Relearn JavaScript events
- For someone, delete return 1 and return 0
- How does Java dynamically obtain what type of data is passed? It is used to judge whether the data is the same, dynamic data type
- How does the database cow optimize SQL?
- [data structure] chain structure of binary tree (pre order traversal) (middle order traversal) (post order traversal) (sequence traversal)
- Webpack packaging optimization solution
- 5. Operation element
- Detailed explanation of red and black trees
- redhat7. 9 install database 19C
- Blue Bridge Cup notes: (the given elements are not repeated) complete arrangement (arrangement cannot be repeated, arrangement can be repeated)
- Detailed explanation of springboot default package scanning mechanism and @ componentscan specified scanning path
- How to solve the run-time exception of test times
- Detailed explanation of k8s management tool kubectl
- Android system view memory command