Exemplo n.º 1
0
 public static ElementBuilder 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.SelfClosing(true);
     return img;
 }
Exemplo n.º 2
0
 public static ElementBuilder 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.SelfClosing(true);
     return input;
 }