Website creation knowledge
Website creation knowledge
I. general templates:
<! DOCTYPE html>
<Html lang = "en">
<Head>
<Meta charset = "UTF-8"/>
<Title> document title </title>
<Link rel = "shortcut icon" href = "img \ wujiaoxing. ico"/> <! -- Set the title icon -->
</Head>
<Body>
<Header role = "banner">
<Nav role = "navigation"> header </nav>
</Header>
<Main role = "main">
<Article>
<P> main content </p>
</Article>
</Main>
<Aside role = "complementary"> other content in the remarks column </aside>
<Footer role = "contentinfo"> footer (for example, copyright) </footer>
</Body>
</Html>
Ii. Three elements of web pages:
1. elements:
(1) Peer display:
<A> (link tag) </a>
<Em> (italic label) </em>
(2) line feed display:
<H1> (Title 1 label)
<H2> (Title 2 label)
<Article> (document tag) </article>
<P> (paragraph label) </p>
<Main> </main> <! -- Note: one page can be used at most once! Header; footer; aside; in article -->
<Header>
<Footer> </footer>
<Hr> (separator line label)
(3) unknown to the author:
(Image Tag) </img>
<Font> (font label) </font>
<B> (bold label) </B>
<I> (italic label) </I>
<U> (underline label) </u>
<Sup> (superlabel) </sup>
<Sub> (subscript tag) </sub>
<Audio> </audio>
<Video> </video>
<Li> (dot before link) </li>
2. attributes:
<A>: href; title;
: src; width; height; alt
3. value:Http://www.w3school.com.cn/tags/html_ref_standardattributes.asp
Iii. Others:
1. Notes:
Example: <! -- I am the commented content, and it is not displayed in the browser -->
2. Learning links:
Web page special symbol HTML code Daquan: http://www.cnblogs.com/web-d/archive/2010/04/16/1713298.html
HTML series Tutorials: http://www.w3school.com.cn/h.asp
Various labels and their usage: http://www.w3school.com.cn/tags/tag_doctype.asp