Exemplo n.º 1
0
        public static string CreateInput(string type, string name, string value)
        {
            ElementBuilder image = new ElementBuilder("a");
            image.AddAttribute("type", type);
            image.AddAttribute("name", name);
            image.AddAttribute("value", value);

            return image.ToString();
        }
Exemplo n.º 2
0
        public static string CreateURL(string url, string text, string title)
        {
            ElementBuilder image = new ElementBuilder("a");
            image.AddAttribute("url", url);
            image.AddContent(text);
            image.AddAttribute("title", title);

            return image.ToString();
        }
Exemplo n.º 3
0
        public static string CreateImage(string source, string alt, string title)
        {
            ElementBuilder image = new ElementBuilder("img");
            image.AddAttribute("src", source);
            image.AddAttribute("alt", alt);
            image.AddAttribute("title", title);

            return image.ToString();
        }