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 considerations for html and css

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

Share

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

Today, I would like to share with you what are the relevant knowledge points of html and css notes, detailed content and clear logic. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's learn about it.

Notes and small knowledge points of html and css

Html

Commonly used html special symbols:

Space: & npsd

Copyright reserved symbol: & copy

Registered trademark symbol: & reg

There are two label containers: and

Labels are generally used to wrap a piece of text so that it is easy to style the text

Tags are generally used to plan web pages

Comments in html are: [be sure to distinguish them from comments in css and js, comment / * comment content * / in css internal and external style, and add an one-line comment in js code: / / comment content]

There are three ways to eliminate the impact of floating elements on other elements:

1. Set up a parent element div so that its height and width fully cover the floating element.

2. Add an overflow:auto attribute to the parent element, which can automatically change the size of the parent element.

3. The clear attribute is to clear the float, the first two are to add the last one to the parent element, and the last one is to add clear to the element you do not want to be affected. The attribute value has left,right,both.

Nesting principle: hyperlinks cannot be nested within hyperlinks; p tags cannot be nested within p tags; title tags cannot be nested with each other; css in the actual web page development, multiple styles conflict, so the high priority shows how to judge the priority: the weight value of the universal selector * that can compare styles is 0; the weight value of the tag selector is 1; the weight value of the class selector is 10 The weight value of the id selector is 100; the weight value of the inline style is 1000; determine which style will show that its weight value can be calculated directly to compare their size.

These are all the contents of the article "what are the points for attention in html and css?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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