Div code


#1

When entering this code the = sign does not turn red with the rest of the code and I feel like it is not executing as it should. Does it matter if the = sign changes color?


#2

Hi Rmarvin21,

The equal sign changing color probably doesn't matter. It's just syntax highlighting, which makes your code prettier and easier to read.

For example, both of these are perfectly valid in real life (the lesson is expecting something different):

<div class="example">
  text...
</div>

<div class="example">
  text...
</div>

See how the second one is easier to read?

That being said though, the = not being highlighted may mean there's a problem in your code and the editor isn't highlighting it properly because there's an error confusing it, so would you mind posting and formatting your code so we see if there's a problem in it?

You can format code by selecting it all while in the post editor, and pressing Ctrl/Cmd + K, or by adding a new line and three backticks (`) before and after your code, like this:


```
<code> will show up properly here
```

Thanks :)


#3

Hi zystvan i have got an idea now about the = color. Thanks a lot for your reply.