JavaScript tutorial 21 – html tags in javascript

How to write HTML tags in JavaScript : We can insert HTML tags in JavaScript strings to generate desired html structure. Example Code: <!doctype html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>Javascript demo</title> </head> <body> <script type=”text/javascript”> document.write(“<b>Hello world</b>”); document.write(“<b><u>Hello worldM</u></b>”); </script> </body> </html> ======================================================== Follow the link for next vdieo: https://youtu.be/6y5tX-Pmo0M Follow the link for previous video: https://youtu.be/g47WgEUDBT4 ========= For more benefits & Be up to date =================== Subscribe to the channel: https://

Continue reading “JavaScript tutorial 21 – html tags in javascript”

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on TumblrShare on Google+Digg thisShare on LinkedInPin on PinterestShare on VKShare on RedditPrint this pageEmail this to someone
Flattr the authorShare on StumbleUponShare on YummlyBuffer this page

JavaScript video tutorial – 19 – Javascript white space and line break

JavaScript white space and line break : If we have more than one white space in a string, then browser collapses all the white spaces to single white space. Hence to add more than one white space in between words or characters we use html entity ampersandnbsp;. ampersandnbsp;. indicates non breaking white space, which adds single space. We can use ampersandnbsp;. any number of times to add more white spaces. HTML br tag in JavaScript Code: To add line break we can use html br tag in a string. html br tag moves the cursor to next line so that from their on next content can be placed or written. Note: For spreading a long string to multiple lines end lines by \ Example Code: <!doctype html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>Jav

Continue reading “JavaScript video tutorial – 19 – Javascript white space and line break”

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on TumblrShare on Google+Digg thisShare on LinkedInPin on PinterestShare on VKShare on RedditPrint this pageEmail this to someone
Flattr the authorShare on StumbleUponShare on YummlyBuffer this page