예제 #1
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")));

            Console.WriteLine(html.Display(0));
            File.WriteAllText("index.html", html.Display(0));
        }
예제 #2
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());
        }
예제 #3
0
        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());
        }
예제 #4
0
파일: Program.cs 프로젝트: ivayloivanof/HQC
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
        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());
        }