HTML does not use CSS rules

I’m new to CSS and I have this problem where my HTML does not use some of the CSS rules I defined.
I have this HTML:

<!DOCTYPE html>

<html ng-app="sample", lang="he">

    <meta charset="utf-8">

    <link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="main.css">

    <script type="text/javascript" src="angular.min.js"></script>
    <script type="text/javascript" src="app.js"></script>

    <div ng-controller="AppController as app">
        <div class="peoplelist", ng-repeat="person in">
            <p class="name">{{person.first + ' ' + person.last}}</p>
            <p class="id">{{}}</p>

and this css: {
    font-family: "David";
    font-size: 20px;
    margin: 0rem;
    float: right;
} {
    font-size: 12px;
    margin: 0rem;
    float: right;

div.peoplelist: {
    margin: 5rem;
    float: right;

When I open the HTML in my browser (chrome) I can see that the first rule ( is used but the other 2 are not, the browser ignored it. When I checked it (Ctrl+Shift J) I saw that the rule was not associated with the element.

I can’t seem to find an answer online.
Can someone tell me what’s wrong with the code?


Source: html5

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.