Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the six common interview questions in HTML5?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Editor to share with you what are the six common HTML5 interview questions, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

First of all, the editor will briefly introduce the interview process to you. The interview process of large companies is divided into five parts: written test, project manager interview, director interview, computer test and HR interview. The written test questions will not be too difficult, they are all basic questions, and the js part accounts for a large proportion, mainly because the enterprise wants to know how your front-end foundation is; the interview process will be relatively easy, and the interviewer will ask you some related technical questions while chatting with you, which will be emphasized later; the computer test will give you a page and then let you write it in code on the computer. Finally, HR will talk to you about salary and treatment.

So, what kind of questions do the project managers and technical directors of employing enterprises usually ask? The project manager pays attention to the foundation and asks questions in detail, while the director pays attention to the structure and the overall view. The following editor presents six classic interview questions, all of which are basic questions, everyone take a closer look at them.

Question 1: how do browsers manage and load HTML5's offline storage resources?

A: the browser finds that there is a manifest attribute in the html header, and it will request the manifest file. If it is the first time to access app, the browser will download the corresponding resources according to the contents of the manifest file and store them offline. If you have already visited app and the resources have been stored offline, the browser will load the page using offline resources, and then the browser will compare the new manifest file with the old manifest file, and if the file has not changed, it will do nothing, and if the file has changed, the resources in the file will be re-downloaded and stored offline. When offline, browsers directly use resources stored offline.

Question 2: what data types are there in JS?

Answer: there are five data types in JS: Undefined, Null, Boolean, Number, and String. Another complex data type, object,object, is essentially an unordered set of name-value pairs.

Question 3: IE browser css floating and compatibility issues

A: after floating, you need to clear the float so that it won't cause a problem. Now the mainstream approach is to add a class to the parent of the floating element, as follows:

.clear: after {content:'';display:block;clear:both;}

.clear {zoom:1;} / / this is for compatibility with IE

Then add a class= "clear" to the parent.

Question4: is there any difference between the different positions of the js in the html?

Answer: if you use window. Function, where you put the js code, it is the same everywhere, because it is all executed after the body is loaded, if you do not use window. Function, put in head, the code will not be executed, this is because the html execution order, specifically the js execution order, the HTML runs from the top into the test.js file. The previous one will not run, that is, the one wrapped in function will not be run, so the last sentence will be executed at this time. Go to the page to get the elements. But at this time, the HTML page is not finished loading. So if you can't find the element, you will report an error.

Question 5: what are the popular frameworks for mobile html5 development?

Answer: 1. JQueryMobile,jQueryMobile is the version of jQuery on mobile phones and tablets. JQueryMobile will not only bring jQuery core libraries to mainstream mobile platforms, but also release a complete and unified jQuery mobile UI framework. Support the global mainstream mobile platform. The jQueryMobile development team said: I am very excited to develop this project. Mobile web really needs a cross-browser framework that allows developers to develop real mobile web sites.

2. JQTouch,jQTouch is a plug-in for jQuery, which is mainly used in Webkit browsers on mobile phones to achieve Java libraries that include animation, list navigation, default application styles, and other common UI effects. Support includes iPhone, Android and other mobile phones.

Question 6: what is the difference between ajax and jsonp?

A: the implementation method is completely different. The core of ajax is to get content outside of this page, while the core of jsonp is to dynamically add tags to invoke js scripts provided by the server.

The above is all the contents of the article "what are the six common interview questions in HTML5". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report