CodePen

HTML

            
              <div id="js">my-domain.com</div>
            
          
!
via HTML Inspector

CSS

            
              div{ text-align: center; margin: 2em auto; }
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              document.getElementById( 'js' ).innerHTML = 'my<br>-domain<br>.com';
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................