w3resource

Material Icon Shopping_cart Icon

Usage

<i class="material-icons">shopping_cart</i>

Out of the box

<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<i class="material-icons">shopping_cart</i>
</body>
</html>

Live Demo

See the Pen icon shopping_cart example-1 by w3resource (@w3resource) on CodePen.

Large Icon

<!DOCTYPE html>
<html>
<head><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style type="text/css">
.material-icons.md-48 { font-size: 48px; }
</style>
</head>
<body>
<i class="material-icons md-48">shopping_cart</i>
</body>
</html>

Live Demo

See the Pen icon shopping_cart example-2 by w3resource (@w3resource) on CodePen.

Change color

<!DOCTYPE html>
<html>
<head><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style type="text/css">
.material-icons.md-18 { font-size: 18px;color: #0000FF }
.material-icons.md-24 { font-size: 24px;color: #0000FF }
.material-icons.md-36 { font-size: 36px;color: #0000FF }
.material-icons.md-48 { font-size: 48px;color: #0000FF  }
</style>
</head>
<body>
<p><i class="material-icons md-18">shopping_cart</i></p>
<p><i class="material-icons md-24">shopping_cart</i></p>
<p><i class="material-icons md-36">shopping_cart</i></p>
<p><i class="material-icons md-48">shopping_cart</i></p>
</body>
</html>

Live Demo

See the Pen icon shopping_cart example-3 by w3resource (@w3resource) on CodePen.


Previous: Material Icon Shopping_basket Icon
Next: Material Icon Speaker_notes Icon



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/icon/material-icons/action-icons/shopping_cart.php