element selector

1. The most common selector is the element selector, and the elements of the document are the most basic selectors.

Like these: h1{}. a{}, etc.

css file can be implemented like this:

h1{  color: cadetblue;  
}

There are many such examples, so I won’t give them one by one here. It’s very simple. This is called an element selector. Let’s talk about the selector below. Group.


Continuing Learning
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>认识html标签</title> <style type="text/css"> h1{ font-weight:normal; color:red; } </style> </head> <body> <h1>勇气</h1> <p>三年级时,我还是一个胆小如鼠的小女孩,上课从来不敢回答老师提出的问题,生怕回答错了老师会批评我。就一直没有这个勇气来回答老师提出的问题。学校举办的活动我也没勇气参加。</p> <p>到了三年级下学期时,我们班上了一节公开课,老师提出了一个很简单的问题,班里很多同学都举手了,甚至成绩比我差很多的,也举手了,还说着:"我来,我来。"我环顾了四周,就我没有举手。</p> </body> </html>
submitReset Code