Webpage graphic design HTML Day01 and graphic design day01

Source: Internet
Author: User

Webpage graphic design HTML Day01 and graphic design day01

Webpage graphic design HTML Basics

1. Basic Elements of a webpage: text, images, and hyperlinks

2. The basic structure of HTML is head, title, and body.

<Html>

<Head>

<Title> title </title>

</Head>

<Body>

Body

</Body>

</Html>

3. Common tags/attributes

<Body background Image bgcolor background color text non-connected text color> body </body>

<P align = "left/right/center"> text section </p>

<Br/> line feed mark

<H1> title

<Pre> pre-format mark, as shown in the browser </pre>

<! -- Annotation mark to show the program -->

<Center> center </center>

<Blockquote> shrink text </blockquote>

<Font size face font color> font </font>

<U> underline </u>

<S> strikethrough </s>

<B> bold </B> <strong> bold </strong>

<I> italic </I> <em> italic </em>

  & Lt indicates <& gt indicates>& Amp indicates & quot indicates"

  & Nbsp; space & copy©& Reg®  

& Times indicates × & divide indicates Signature

4. Notes

1. Create a project and put the images in a folder.

2. Two ways to introduce images

Absolute path D:/demo/images/123.gif (not recommended)

A relative path./images/1.gif indicates a directory of the same level.

../Demo/images/2.jpg two dots represent the upper-level directory, three dots represent the upper-level directory, and so on

3. Common network image formats

Gif is composed of 256 pixels. It supports transparency, animation, and small size.

Jpg is composed of millions of pixels with high quality and does not support animation or transparency.

The png fireworks source format png8 supports transparency, while png34 and png32 do not support transparency.

4 <body> the background image is displayed on the upper layer of the background color. bgcolor is displayed when the image is transparent.

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.