DIV CSS Application_Basic Knowledge_html/css_WEB-ITnose
1. The setting order of the magin tags that set the outer spacing of the container is: top, right, bottom, left
2. Reference other CSS in Css The way is: @import url("main.css");
In the page
3. The following div containers that will cause page wrapping are (multiple choices):
-
4. Please write the css for horizontal stretching of the background background-image:url("../images/ptjsw_69.gif") repeat-x center top;
5. Please write the css to eliminate the blank line between the content box () and the browser:
Set div style.div1{margin:0px 0px 0px 0px; height:100%;width:100% ;}
6. Please briefly describe the mechanism of DIV CSS standard page to improve page browsing speed:
Due to the use of DIV CSS production method, it is easier to save time when modifying the page. According to the regional content tag, find the corresponding ID in CSS, which makes it more convenient to modify the page without destroying the layout style of other parts of the page. The separation of performance and structure makes it easier to divide work and reduce interrelation in team development.
7.
border:1px solid #cccccc; border (pixel line color)
position:absolute (relative); relative position (absolute position)
background-position: left bottom; The position of the background in the container
background-repeat:no-repeat; The background stretching method
cursor:pointer; The hand effect when the mouse is over
8.XHTML 1.0 and There are some differences in versions before HTML4.01:
1) More standardized and strict.
2) Whether to ignore the padding value when calculating the width of the element.
3) Allow inline elements to have attributes of block elements, such as specifying width for inline elements.
4) The inheritance of attributes of elements is very different.
5) The attributes of elements are richer, and the space for control and expression is increased.
9.
10.Among them: DOCTYPE tells the browser that this is a file type specified for the web page
html is the first element of the web page
PUBLIC This is An announced universal document type
"-//W3C//DTD XHTML 1.0 Strict //EN" uses the strict xhtml1.0 standard, and the markup is in English
http://www.w3. org/TR/xhtml1/DTD/xhtml1-Strict.dtd A URL pointing to the definition of xhtml1.0
The xmlns attribute specifies which markup language the element belongs to. Other elements inherit the xmlns attribute of the parent class by default.Change DOCTYPE to strict XHTML 1.0 to provide clear standards to browsers. When not specified, the browser will parse according to its own standards, and deviations will occur during parsing.
There are some differences between XHTML 1.0 and previous versions of HTML4.01:
They are more standardized and strict.
Whether to ignore the padding value when calculating the width of the element.
Allows inline elements to have attributes of block elements, such as specifying width for inline elements.
There is a big difference in the inheritance of attributes of elements.
The attributes of elements are richer, and the space for control and expression is increased.Statement of this WebsiteThe content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.
