What is the consensus for best practices for naming?
There appears to be various methods, and the one that CMSMS templates use is div#name that the syntax highlighter does not like.
Choices:
1. div#name
2. div #name
3. div id="name"
4. other?
Thanks.
div#name or div #name or div id="name" ????
Re: div#name or div #name or div id="name" ????
Naming is kind of a personal thing when it comes to HTML/CSS
When participating on a team, and mostly with backend code, there will be standards established.
div#MyTitle is not the same as
div #MyTitle
1) is <div id="MyTitle">Title</div>
2) is <div><p id="MyTitle">Title</p></div>
OR
<div><div id="MyTitle">Title</div></div>
OR
<div><h1 id="MyTitle">Title</h1></div>
https://generalassemb.ly/education/code ... ash-course
https://mozteach.makes.org/thimble/cras ... ml-and-css
When participating on a team, and mostly with backend code, there will be standards established.
In css, this would not be the same target.1. div#name
2. div #name
div#MyTitle is not the same as
div #MyTitle
1) is <div id="MyTitle">Title</div>
2) is <div><p id="MyTitle">Title</p></div>
OR
<div><div id="MyTitle">Title</div></div>
OR
<div><h1 id="MyTitle">Title</h1></div>
https://generalassemb.ly/education/code ... ash-course
https://mozteach.makes.org/thimble/cras ... ml-and-css
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Re: div#name or div #name or div id="name" ????
Why is number 1 used if the AceEditor doesn't like it? Or is it the problem of AceEditor?