HTML CSS
CSS (Cascading Style Sheets) Styles used to render HTML element tags. For example, what we learned earlier is to add a background color to
. Change the color of the text in thetag. These are all done with CSS
##How to use CSS
CSS was started in HTML 4 and was introduced for better rendering of HTML elements.
CSS can be added to HTML in the following ways Medium:
Inline style- Use the "style" attribute in HTML elements
- # #Internal style sheet
- Use the
我的颜色是在 head 标签里面定义的
我的颜色是在 head 标签里面定义的
我的颜色是在 head 标签里面定义的
## Code running results:
#External style sheets
When styles need to be applied to many pages, external style sheets will be the ideal choice.An external style sheet uses the tag to introduce an external css file.Using an external style sheet, you can change the appearance of the entire site by changing one file.
For exampleA css file is defined to change the background color of to yellow,
title to red,
; turns blue, the css file is as follows
body{background-color:yellow;} p{color: blue;} h1{color: red;}
Use to introduce the css file into the HTML file
php.cn 外部样式表
我的颜色是用外部样式表定义的
我的颜色是用外部样式表定义的
Program running result:
##HTML style tag
#Example
The link tag we learned earlier is underlined. We use css style to remove the underline.
Program running result:
##
Visit our CSS tutorials to learn more about styling.
- Course Recommendations
- Courseware download
IntermediateFront-end Vue3 actual combat [handwritten vue project]
2857 people are watchingElementaryAPIPOST tutorial [Popularization of technical concepts related to network communication]
1795 people are watchingIntermediateIssue 22_Comprehensive actual combat
5521 people are watchingElementaryIssue 22_PHP Programming
5172 people are watchingElementaryIssue 22_Front-end development
8713 people are watchingIntermediateBig data (MySQL) video tutorial full version
4525 people are watchingElementaryGo language tutorial-full of practical information and no nonsense
2794 people are watchingElementaryGO Language Core Programming Course
2814 people are watchingIntermediateJS advanced and BootStrap learning
2563 people are watchingIntermediateSQL optimization and troubleshooting (MySQL version)
3374 people are watchingIntermediateRedis+MySQL database interview tutorial
2963 people are watchingElementaryDeliver food or learn programming?
5708 people are watching
The courseware is not available for download at the moment. The staff is currently organizing it. Please pay more attention to this course in the future~Students who have watched this course are also learning
- Let's briefly talk about starting a business in PHP
- Quick introduction to web front-end development
- Large-scale practical Tianlongbabu development of Mini version MVC framework imitating the encyclopedia website of embarrassing things
- Getting Started with PHP Practical Development: PHP Quick Creation [Small Business Forum]
- Login verification and classic message board
- Computer network knowledge collection
- Quick Start Node.JS Full Version
- The front-end course that understands you best: HTML5/CSS3/ES6/NPM/Vue/...[Original]
- Write your own PHP MVC framework (40 chapters in depth/big details/must read for newbies to advance)
- About us Disclaimer Sitemap
- php.cn:Public welfare online PHP training,Help PHP learners grow quickly!
Tag Description