How to get output in html ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get output in html ?

I have a string as input and after shuffling that want to print that in same page and also copy new string. Can anyone please help me ? Thanks

29th Oct 2021, 2:57 PM
Sachin Kumar Gupta
Sachin Kumar Gupta - avatar
6 Answers
+ 1
Html is neither server side nor scripting language, html is just markup language so if you want to work with inputs then use JavaScript and please don't tag other languages because not related to html.
29th Oct 2021, 4:19 PM
A͢J
A͢J - avatar
0
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ i thought as html is showing input buttons it will also show ouptut result, and as my question is not limited to only html thats why i tagged other language like flask and python as it is related to them also
29th Oct 2021, 4:40 PM
Sachin Kumar Gupta
Sachin Kumar Gupta - avatar
0
So in which language do you need help? You’re talking about html output. html can’t be used to transform data. Use javascript
29th Oct 2021, 6:17 PM
Guillem Padilla
Guillem Padilla - avatar
0
Guillem Padilla i have done that in python. I just wanted to know as html takes input and response button for that part, is it can also show output of that
29th Oct 2021, 6:27 PM
Sachin Kumar Gupta
Sachin Kumar Gupta - avatar
0
In order to show output in HTML you need to modify the content of an HTML element. Idk about python but it can be done with javascript with something like document.getElementById(“your Id”).innerHTML = “your data”
29th Oct 2021, 6:31 PM
Guillem Padilla
Guillem Padilla - avatar
0
the last line looks a bit like SQL
31st Oct 2021, 5:44 AM
Stacey Prahl
Stacey Prahl - avatar