The relationship between Html and CSS
Basic knowledge required for backend development based on WeChat includes: HTML, CSS, and JavaScript languages.
Let’s take a look at what these three technologies are used to achieve:
1. HTML is the carrier of web content. Content is the information that web page creators put on the page for users to browse, and can include text, pictures, videos, etc.
2. CSS style is performance. It's like a coat for a web page. For example, title font, color changes, or adding background images, borders, etc. to the title. All these things used to change the appearance of content are called presentations.
3. JavaScript is used to implement special effects on web pages. For example: the drop-down menu pops up when the mouse slides over it. Or the background color of the table changes when the mouse rolls over it. There is also a rotation of hot news (news pictures). It can be understood that animated and interactive
are generally implemented using JavaScript.
Here we only learn HTML and CSS.
I will give you a task below. When you complete the task, see the effect.
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>CCF浙商大学生分会- Html和CSS的关系</title><style type="text/css">h1{8.行9.行10.行}</style></head><body><h1>Hello World!</h1></body></html>
1. Enter the font size attribute in line 8 above: font-size:12px;
2. Enter the font color attribute in the 9th line above: color:#930;
3. Enter the font position attribute in the 10th line above: text-align:center;
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>CCF浙商大分会-Html基础知识教程</title></head><!--希望大家可以真正的学到东西--><body><h1><center>剑术的四重境界</center><br>第一柄,青光利剑,“凌厉刚猛,无坚不摧,弱冠前以之与河朔群雄争锋。” <br>第二柄,紫薇软剑,“三十岁前所用,误伤义士不祥,悔恨无已,乃弃之深谷。”<br>第三柄,玄铁重剑,“重剑无锋,大巧不工。四十岁前恃之横行天下。”<br>第四柄,柄已腐朽的木剑,原因是独孤求败“四十岁后,不滞于物,草木竹石均可为剑。”</h1></body></html>