In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what functions HTML6 really need, and the editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
What HTML6 really needs
Well, I know there's no such thing as a HTML6 version. Another thing that may surprise you even more is that we are not using the HTML5 standard today, because it is in real-time updates and is called a "dynamic standard". Now we are using HTML5.2, and the Web development work will focus on the HTML specification that will be used in the future. So sooner or later we will evolve to the next generation of HTML standards, but this evolution is gradual and will not be done overnight.
In that case, I will propose some features that I hope future standards will achieve.
More native elements
If we want to use a user-equipped camera, the right way is to capture the video stream, then display it into a video element, then take a snapshot, and then draw the picture into the canvas. This sounds a lot more complicated than we expected.
In the next official version of HTML, we should be able to more easily deal with more native components to make higher-level Web applications and PWA (progressive Web applications), and finally realize Steve Jobs' dream.
These elements will come with their own API, and some of them don't even need HTML elements, such as NFC, contacts, text messages, or VR access.
New element
The Web development industry has demonstrated that Web technology can be used not only to build websites, but also to build complex Web applications and interfaces; so to better manage our DOM, we should have more specialized tags.
Instead of having the id attribute, we can handle it better in the CSS stylesheet. Some developers suggest that we can call id directly through the name tag, but I really don't think that's a good idea.
Varelement = document.getElementById ("router"); specially built learning Q-q-u-n ⑦⑧④-⑦⑧③-Zero ①② to share learning methods and small details that require attention, communicate with each other, and constantly update the latest tutorials and learning skills (from zero to WEB front-end project tutorials, learning tools, full-stack development learning routes and planning)
This is really useless, because we already have getElementByName (), and it allows us to distinguish between our own tags and HTML native tags, and the consequences can be bad.
Vartag= document.getElementsByName ("tag")
If you've seen the content before, you may already know that there is a solution that proposes a new tag to deal with dedicated native html tags, but this approach is useless and takes up a lot of space, making the site more bloated and not improving performance.
My solution is to continue to use tags as usual, but to use new tags to help responsive programming, web designers, and developers create better page layouts.
Remember the KISS principle, keep it simple and act foolish.
Preprocessor
I don't like it very much, but a lot of developers like it, so it should be a good feature. It can improve the efficiency of Web coding, and even if it increases CPU usage, many developers are willing to bear the cost.
Obviously, it couldn't be better to shorten the development time.
Don't just use JavaScript
I know this is impossible, at least today, and I don't need this feature at all, but it would be nice if developers could write down the names of other languages in script tags besides JavaScript.
El= dom.elementId ("Element") el.html ("Thislinewillbeprinted in the element")
This will really change the rules of the game, because overnight there will be a large number of newcomers to the Web development industry, which is a very good thing. Some Java developers can also use their verbose syntax.
Importhtml;classMain {publicstaticvoidmain (String args []) {element div = html.doc.getElementById ("element"); div.write ("Element display text");}} this article ends here. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, please share it for more people to see.
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.