\n html code example
Example 1: new line html
<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->
Line 1 of text
<br>
Line 2 of text
Example 2: html put newline in text with \n
white-space: pre-line;
Example 3: js \n
//Example:
var i = 'Hello \n World'
console.log(i)
//Would return:
Hello
World
Example 4: html newline
1st line
<br>
2nd line
Example 5: . and # in html
<!DOCTYPE html>
<html>
<head>
<style>
.classname {
background-color: green;
color: white;
}
background-color: pink;
color: white;
}
</style>
</head>
<body>
<div class="classname">I am green colour<div>
<div id="idname">I am pink colour</div>
</body>
</html>
Example 6: how to use * in html
* {
color:blue;
}