static void Main() { Element html = new Element( "html", new Element("head"), new Element("body", new Element("section", new Element("h2"), new Element("p"), new Element("span")), new Element("footer"))); Console.WriteLine(html.Display(0)); File.WriteAllText("index.html", html.Display(0)); }
static void Main() { Element html = new Element("html", new Element("head"), new Element("body", new Element("section", new Element("h2"), new Element("p"), new Element("span")), new Element("footer"))); File.WriteAllText("index.html", html.Display()); }
public static void Main() { Element html = new Element("html", new Element("head"), new Element("body", new Element("section", new Element("h2"), new Element("p"), new Element("span")), new Element("footer"))); File.WriteAllText("../../../index.html", html.Display()); }
public static void Main() { Element html = new Element("html", new Element("head"), new Element("body", new Element("section", new Element("h2"), new Element("p"), new Element("span")), new Element("footer"))); html.Display(); // Console.WriteLine(html); }
public static void Main() { Element html = new Element("html", new Element("head"), new Element("body", new Element("section", new Element("h3"), new Element("p")), new Element("ul", new Element("li", new Element("a")), new Element("li", new Element("a"))), new Element("footer"))); html.Add(new Element("script")); Console.WriteLine(html.Display()); }