CSS: Applying global style rule to all similar

This entry is part 3 of 26 in the series Basic CSS

Say we have a few unordered lists.  Instead of putting the style in each <ul> tag, we can declare a global style rule for all <ul> tags.

<!DOCTYPE html>
<head lang='en'>
    <meta charset='UTF-8'>

    <style type='text/css'>
        ul {
            list-style-type: square;


<h4>American Rock</h4>
    <li>Linkin Park</li>


Series Navigation<< CSS: Applying style to individual tag
CSS: Multiple rules within one style section >>

Leave a comment

Leave a Reply