Skip to content

Commit 9ce37f3

Browse files
committed
Update README.md
1 parent 7b34211 commit 9ce37f3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ div ~ p {
644644

645645
## Q. What is the difference between class selectors and id selectors?
646646

647-
In the CSS, a class selector is a name preceded by a full stop (“.”) and an ID selector is a name preceded by a hash character (“#”). The difference between an ID and a class is that an ID can be used to identify one element, whereas a class can be used to identify more than one.
647+
In the CSS, a class selector is a name preceded by a full stop (".") and an ID selector is a name preceded by a hash character ("#"). The difference between an ID and a class is that an ID can be used to identify one element, whereas a class can be used to identify more than one.
648648

649649
```css
650650
#top {
@@ -660,11 +660,9 @@ In the CSS, a class selector is a name preceded by a full stop (“.”) and an
660660

661661
```html
662662
<div id="top">
663-
664-
<h1>Chocolate curry</h1>
665-
<p class="intro">This is my recipe for making curry purely with chocolate</p>
666-
<p class="intro">Mmm mm mmmmm</p>
667-
663+
<h1>Welcome to the CSS3 Tutorial</h1>
664+
<p class="intro">Select element by class</p>
665+
<p class="intro">Example for class selector paragraph</p>
668666
</div>
669667
```
670668

0 commit comments

Comments
 (0)