Liberty BASIC Community Forum
« A VERY simple web page Generator w lines »

Welcome Guest. Please Login or Register.
Nov 22nd, 2017, 01:30am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: A VERY simple web page Generator w lines  (Read 412 times)
michael
Guest
xx A VERY simple web page Generator w lines
« Thread started on: May 26th, 2015, 12:55am »

For the fist trial just put a couple words per line .
It is just a sample program generator .. I will be making a very powerful version later with graphics display !!
Code:
input "Website name (just a name) : "; W$
input "Enter the Title on the Page : "; T$
input "Enter the first Subtitle : "; st$
input "Enter the first paragraph under the first Subtitle : "; art1$
open "Myweb.html" for output as #1
print#1, "<!DOCTYPE html>"
print#1, "<html lang=" + chr$(34) + "en" + chr$(34) + ">"
print#1, "<head>"
NL$ = "<meta charset=" +chr$(34) + "UTF-8"+ chr$(34) + ">"
print #1, NL$
NL$ = "<title>"+W$+"</title>" ' This will show at the top of the browser along with the path to the file
print #1, NL$
print #1, "</head>"
print #1, "<body>"
NL$ = "<h1 style="+chr$(34)+"text-align:center; color:red" + Chr$(34) + ">" + T$ + "</h1>"  'The title at the top of the page
print #1, NL$
print #1, "<HR>"
NL$ = "<h2>" + st$ + "</h2>"
print #1, NL$
print #1, "<HR>"
NL$ = "<p>" + art1$ + "</p>"
print #1, NL$
print #1, "<HR>"
print #1, "</body>"
print #1, "</html>"
close #1
print "OK now close this program and look for an internet file called "
input "'Myweb.html' right click it and open it"; done$
wait
end




 
« Last Edit: May 27th, 2015, 6:27pm by michael » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls