Welcome Guest, Not a member yet? Register   Sign In
The Ultimate HTML tags generator
#1

[eluser]Blaze Boy[/eluser]
i have wrote an article about tag(), it's a function that generates HTML, and here is the introduction:
Quote:If we want to generate HTML using controller or even view files we can do that in two ways:

Use the HTML helper :
it’s some functions that generate unordered list, anchors, images…etc
Write the HTML directly in your files (bad practice).
The 1st way is really better but it leaks something? What if we want to generate HTML for an array, add attributes, and make any tag we want.

The second way can do it but:

If you write <h1></h1>, and you want to change the h1 to div? You have to change it in 2 places, right?

What if you HTML are nested tags? You’ll be in a total maze of your code.

The rest of article+code On my blog :
http://www.blazeboy.com/wordpress/2010/0...extension/

i hope to get some reviews Big Grin


Messages In This Thread
The Ultimate HTML tags generator - by El Forum - 02-22-2010, 09:32 PM
The Ultimate HTML tags generator - by El Forum - 02-23-2010, 03:24 PM
The Ultimate HTML tags generator - by El Forum - 02-23-2010, 04:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB