In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what are the new elements of HTML and HTML5". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article "what are the new elements of HTML and HTML5" can help you solve the problem.
HTML
Definition: HTML, also known as Hypertext markup language, is a markup language. It includes a series of tags that unify the format of documents on the network and connect scattered Internet resources into a logical whole. HTML text is a descriptive text composed of HTML commands. HTML commands can describe text, graphics, animation, sound, tables, links, and so on.
Hypertext is a way to organize information, which associates the text and charts with other information media through the method of hyperlink. These interrelated information media may be in the same text, other files, or files on a computer that is geographically distant. This way of organizing information connects the information resources distributed in different locations in a random way, which provides convenience for people to find and retrieve information.
HTML important label
The number of tags in HTML is very large, in the process of learning, it is difficult for us to memorize all the tags, in fact, it is not necessary, we just need to be familiar with those commonly used tags, the rest of the tags only need to do a general understanding, when encountered do not understand, you can also use the HTML section of the rookie tutorial to quickly find the use of tags as well as attribute value analysis.
Meta tag
When we are writing HTML, have we ever noticed that there is a meta tag in head, literally it is easy to understand, charset is used to define the character encoding of documents, but the role of meta tags is not just so simple, listen to me to tell you slowly.
Document
The meta tag provides metadata for the HTML document. The metadata will not be displayed on the client side, but will be parsed by the browser.
The meta element is usually used to specify the description of the web page, keywords, the last modification time of the file, the author, and other metadata.
Metadata can be invoked using browsers (how to display content or reload pages), search engines (keywords), or other Web services.
Several common uses of the meta tag:
Example 1-define document keywords for search engines:
Example 2-define web page description:
Example 3-define the page author:
Example 4-refresh the page every 30 seconds:
Example 5-define the viewports of the web page:
Link label
HTML uses tags
< a >To set the hypertext link.
A hyperlink can be a word, a word, or a group of words, or an image that the user clicks to jump to a new document or a part of the current document.
By default, the link appears in the browser in the following form:
An unvisited link is displayed in blue font and underlined.
Visited links are displayed in purple and underlined.
When you click the link, the link appears red and underlined.
Several important attributes of the a tag are as follows:
Attribute name attribute description id is used to describe the location of the anchor point
Href is used to describe the address of the jump link
Target is used to specify how the link will jump. The default method is to open the link in the current window and set the _ Blank value to jump the link in the new window.
Base tag
Now that we talk about link tags, we have to talk about base tags. Base tags may also be a relatively rare use of tags, but it is indeed a very useful tag that is worth learning.
Here's how to start learning the base tag with one line of code:
< base >The tag specifies the default address or default destination for all links on the page.
Typically, browsers extract the corresponding elements from the URL of the current document to fill in the blanks in the relative URL.
Use
< base >Tags can change that. The browser will then no longer use the URL of the current document, but will use the specified base URL to resolve all relative URL. This includes
< a >、
< img >、
< link >、
< form >The URL in the tag.
< base >The use of tags should also be noted:
It must be written in head, and the above code defines that the default hypertext link in this html is and the default is the jump link on the new page.
Try to write the base tag in the first place in head, so that other tags in head can also use the default settings of base.
Link tag
The link tag is used to bring in external resources.
Attribute name attribute description href specifies the location of the linked resource
Type describes the type of resource being linked
Ref describes the relationship between the linked resource and the current document
The rel attribute is required, and the most commonly used value is stylesheet, which indicates that the introduced resource is an external stylesheet for the current document. In addition, there are alternate, author,help,icon and other values. For more information, please see link tag details.
Input tag (including new HTML5)
The input tag is used to define the input box, and the use of the input tag is very simple, but because there are too many types of input box, the input field has many forms according to different type attribute values. Input fields can be text fields, check boxes, masked text controls, radio buttons, buttons, and so on.
What's New to HTML5
HTML5 is a language description way to construct Web content. HTML5 is the next generation standard of the Internet, is a language way to construct and present Internet content, and is considered to be one of the core technologies of the Internet. HTML came into being in 1990. In 1997, HTML4 became the Internet standard and was widely used in the development of Internet applications.
HTML5 is the specification of HTML, the core language of Web. The content that users see when browsing web pages by any means is originally in HTML format, and it is transformed into identifiable information through some technical processing in the browser. HTML5 has made some improvements on the basis of the previous HTML4.01.
This is the end of the content about "what are the new elements of HTML and HTML5". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.