Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to use pyscript in html

<!--Hope this'll help-->

<!-- index.html file-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
    content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
    <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
    <title>Title: PyScript</title>
</head>
<body>
	<py-script> 
    	print("Hello, World!") 
    </py-script>
</body>
</html>

<!--output: Hello, World! -->

Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #pyscript #html
ADD COMMENT
Topic
Name
5+3 =