Coding

Thomas Tan

New Member
Hi everyone,
I recently given an opportunity to touch some web design stuff and found it interesting, especially Coding stuff. Can anyone provide something interesting code for me?

Thank you

P.S. I am really new in web design :p
 

ronaldroe

Super Moderator
Staff member
Code:
var e = prompt('Enter comma-separated list of CSS selectors'),f = document.querySelectorAll(e),len = f.length,rem = document.querySelectorAll('*'),remLen = rem.length,i=0,keep = '';for (i=0;i<len;i++){keep =  keep + '<p>' + f[i].textContent + '</p>';}for (i=0;i<remLen;i++){rem[i].parentNode.removeChild(rem[i]);}document.write(keep);
 

chrishirst

Well-Known Member
Staff member
Go on then, as you are brand new, a dead simple exercise, should take ten minutes tops with CSS3 styling.


PDF attached.
 

Attachments

  • simple.pdf
    6.1 KB · Views: 37
Top