public static string CreateUrl(string url, string title, string text) { ElementBuilder a = new ElementBuilder("a"); a.AddAttribute("href", url); a.AddAttribute("title", title); a.AddContent(text); return(a.ToString()); }
public static void CreateImage(string imageSource, string alt, string title) { ElementBuilder image = new ElementBuilder("img"); image.AddAtribute("src", imageSource); image.AddAtribute("alt", alt); image.AddContent(title); Console.WriteLine(image); }
public static void CreateInput(string inputType, string name, string value) { ElementBuilder input = new ElementBuilder("input"); input.AddAtribute("type", inputType); input.AddAtribute("name", name); input.AddAtribute("value", value); Console.WriteLine(input); }
public static void CreateURL(string url, string title, string text) { ElementBuilder link = new ElementBuilder("a"); link.AddAtribute("href", url); link.AddAtribute("title", title); link.AddContent(text); Console.WriteLine(link); }
public static string CreateInput(string type, string name, string value) { ElementBuilder input = new ElementBuilder("input"); input.AddAttribute("type", type); input.AddAttribute("name", name); input.AddAttribute("value", value); input.IsImgOrInput(true); return(input.ToString()); }
public static string CreateImage(string src, string alt, string title) { ElementBuilder img = new ElementBuilder("img"); img.AddAttribute("src", src); img.AddAttribute("alt", alt); img.AddAttribute("title", title); img.IsImgOrInput(true); return(img.ToString()); }