Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
javascript
basic
030string_htmlTags.js
030string_htmlTags.js
/** * String with html tags. */ var x, y; //HTML tags in string variable x = '<b style="color:red">red color</b>'; y = "<b style=\"color:red\">red color</b>"; console.log(x); console.log(y);
Reload page
Preview
W3C validation
Edit Code
JS Console