Website creation knowledge

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.