Web Front-end interview questions, web interview questions
I 'd like to share with you some of my recent interview questions.
1.Understanding and understanding of WEB standards and W3C
Tag closure, lower-case tags, non-chaotic nesting, increased search robot search probability, use of external link css and js scripts, separation of structure behavior, faster file download and page speed, more content users can access more devices, and have fewer code and components, it is easy to maintain and revise, and does not need to change the page content, provide print versions, but do not need to copy content, to improve the ease of use of the website;
2. xhtmlWhat is the difference with html?
HTML is a basic WEB page design language. XHTML is an XML-based markup language.
Major differences:
XHTML elements must be correctly nested.
The XHTML element must be disabled.
The tag name must contain lowercase letters.
The XHTML document must have the root element.
3.What are the elements in the row? What are the block-level elements? CSS box model?
Block-level element: div p h1 h2 h3 h4 form ul
Row Element: a B br I span input select
Css box model: content, border, margin, padding
4. CSSWhich methods are introduced? What is the difference between link and @ import?
Inline external link Import
Difference: loading at the same time
The former is not compatible, and the latter is not supported by the following browsers: CSS2.1
Link supports using javascript to change the style. The latter cannot
5.Solution to IE6 BUG
1. display caused by bilateral float
Use dislpay: inline-3px due to float 2.3 pixel Problems
3. Click the hyperlink hover and use the correct writing sequence link visited hover active
4. For Ie z-index, add position: relative to the parent level.
5. Png transparent use js Code Change
6. Min-height minimum height! Important work'
7. select uses iframe nesting in ie6
8. Why is there no way to define the width container of around 1 px (IE6 is caused by the Row height by default, using over: hidden, zoom: 0.08 line-height: 1px)