Monday 9 February 2015

Python Program to Make HTML Pages with ease!

Yes! It does what it says!

This program is going to be one of the best code I have written and is interesting.
How about making webpages with HTML without adding tags, their attributes, closing them , etc.?

Let us do it.

This is a brilliant Idea and after some coding, I came up with the following result.
My program currently doesn't support much features but if it gets proper recognition then I will continue to make it more functional.
The tags and attributes currently supported are:

      Tag (mark-up) /Attribute                                      Syntax

background                   -                 background source

bgcolor                          -                 bgcolor color

<a> (anchor)                -                  anchor href-source text

<br/> (break)               -                  br no.-of-line-breaks-needed

<img> (image)             -                  img source *height *width *border

<font>                          -                  sfont face *size *color

</font>                         -                  efont

<center>                      -                  scenter

</center>                    -                   ecenter

heading tags                -                   h1 'text'        (h1 can be replaced by h2,h3,h4,h5)

paragraph                   -                   para-c text       (center aligned)
                                                              or
                                                        para-r text        (right aligned)
                                                              or
                                                        para-l text         (left aligned)
                                                              or
                                                        para-j text         (justified)

Add simple text           -                   text text-to-add

<hr/>                          -                   hr



Try it out if its worth it for you!

Download :     Datafilehost

See it in action:

Input:















Generated HTML file:














Viewing in a web-browser:













Want to Support me? Like Python Palace on Facebook here and/or +1.

No comments:

Post a Comment