1 2 3 4 5 6 | <div id="header"></div> <div id="body-container"> <div id="content"> <!-- Content -- > </div> <div id="right-side-bar"> <!-- Right Side Bar Content Area -- ></div> </div> <div id="footer"></div> |
1 2 | <p style="color: #CCC; font-size:16px; font-family: arial"> An example to illustrate inline style in html</p> |
1 2 3 | <h1>This is the topmost heading</h1> <h2>This is a sub-heading underneath the topmost heading.</h2> <h3>This is a sub-heading underneath the h2 heading.</h3> |
1 2 | <em>emphasized text</em> <strong>strongly emphasized text</strong> |
1 2 3 4 5 | <DIV> <IMG SRC="images/demo_image.jpg" alt="demo image"/> <A HREF="#" TITLE="click here">Click Here</A> <P>some sample text</P> </DIV> |
1 2 3 4 5 | <!-- has an alt attribute, which will validate, but alt value is meaningless -- > <img id="logo" src="images/bgr_logo.png" alt="brg_logo.png" /> <!-- The correct way -- > <img id="logo" src="images/bgr_logo.png" alt="Anson Cheung - Web Development" /> |
1 2 3 4 5 6 7 8 | <fieldset> <legend>Personal Particular</legend> <label for="name">Name</label><input type="text" id="name" name="name" /> <label for="email">E-mail</label><input type="text" id="email" name="email" /> <label for="subject">Subject</label><input type="text" id="subject" name="subject" /> <label for="message" >Message Body</label> <textarea rows="10" cols="20" id="message" name="message" ></textarea> </fieldset> |
1 2 3 | <!--[if IE 7]> <link rel="stylesheet" href="css/ie-7.css" media="all"> <![endif]--> |
1 2 3 4 5 6 7 | <!--[if IE 6]> <link rel="stylesheet" href="css/ie-6.css" media="all"> <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script> <script type="text/javascript"> DD_belatedPNG.fix('#logo'); </script> <![endif]--> |
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |