search
HomeWeb Front-endHTML TutorialPHP-HTML重要知识点笔记

1.用frameset、frame和iframe还实现多窗口

2.在图片上利用映射距离usemap来实现按钮跳转。------第8尾集


3.表单必须要有name和value,因为抓包的时候,可发现必须要提交它们

4.fieldset标签——>legend、lable

5.只能用margin-top、margin-left定位div距离页面边距。

6.padding-top、padding-left定位div里面的元素距离div边距的距离

7.超链接默认是link。可以设置hover的属性,还有visited

8.四个选择器优先级:id选择器(#)>class选择器(.)>html选择器>通配符选择器(*)

9.父子选择器,比如#id1 span{}----->类似于a.clas1{};a.clas2{}
还可以#id1 span span。不一定只有一级。
(1)父子选择器可以有多级(但实际开发中不要过三层)
(2)有严格的层级关系
(3)父子选择器不局限于什么类型选择器
.s1 #id span
div #id .s2

10.一个元素可以同时有id选择器和class选择器。
比如呵呵


11.一个元素最多有一个id选择器,但是可以有多个类选择器
比如呵呵
特别注意:当两个类选择器发生冲突时,则以写在css文件中的后面那个类选择器为准


12.我们可以把某个css文件中的选择器共有的部分,独立出来写一份
比如 .s1 , .s2 , .s3{}

13.行内元素和块元素
(1)行内元素它只占能显示自己内容的宽度,而且它不会占据整行
(2)块元素它不管自己的内容有多少,会占据整行,而且会换行显示
==>>常见的行内元素有PHP-HTML重要知识点笔记
==>>常见的快元素有

14.行内元素和块元素可以相互转换。用display:inline--block

15.CSS盒子模型:第13集中下部分讲margin、border、padding

16.注意一些元素的默认边距。因此要注意除掉。比如ul

17.定位
==>相对定位:相对该元素应当显示的位置重新定位,虽然脱离了
标准流,但是位置不让出来,不能被占用
==>绝对定位:对该元素最近的那个脱离了标准流的元素定位,如
果没有父元素(或者有父元素,但是父元素没有脱离标准流),
则相对于body左上角定位
==>Fixed定位:总是以视窗的左上角定位
==>left top属性 对 static 没有效果,sattic是依靠margin_left和margin_top定位的
==>z_index 用于设置对象(div)显示时候,层叠的属性,z-index越小,越在下面

18.行内元素对height、width的值无效。除非转换成浮动(float)或者(display:block)

19.第20集尾部的可爱屋有两个地方值得借鉴,一是链接菜单栏的动态背景图,
二是输入框只显示下边框,其他边框不显示

 

Statement
The 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
The Future of HTML: Evolution and TrendsThe Future of HTML: Evolution and TrendsMay 13, 2025 am 12:01 AM

The future of HTML will develop in a more semantic, functional and modular direction. 1) Semanticization will make the tag describe the content more clearly, improving SEO and barrier-free access. 2) Functionalization will introduce new elements and attributes to meet user needs. 3) Modularity will support component development and improve code reusability.

Why are HTML attributes important for web development?Why are HTML attributes important for web development?May 12, 2025 am 12:01 AM

HTMLattributesarecrucialinwebdevelopmentforcontrollingbehavior,appearance,andfunctionality.Theyenhanceinteractivity,accessibility,andSEO.Forexample,thesrcattributeintagsimpactsSEO,whileonclickintagsaddsinteractivity.Touseattributeseffectively:1)Usese

What is the purpose of the alt attribute? Why is it important?What is the purpose of the alt attribute? Why is it important?May 11, 2025 am 12:01 AM

The alt attribute is an important part of the tag in HTML and is used to provide alternative text for images. 1. When the image cannot be loaded, the text in the alt attribute will be displayed to improve the user experience. 2. Screen readers use the alt attribute to help visually impaired users understand the content of the picture. 3. Search engines index text in the alt attribute to improve the SEO ranking of web pages.

HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

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

Notepad++7.3.1

Easy-to-use and free code editor

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.