loading...
طراحی وب سایت

azita بازدید : 18 دوشنبه 28 مرداد 1392 نظرات (0)

 

A few tags are called non-container tags, because they don't contain any content - they stand alone. Examples are images and line breaks. XHTML requires that all open tags must be closed, even if they're not  container tags. Therefore, non-container tags end in />. For example, the tag for a line break is <br />.

Tags in HTML are not case sensitive, but in XHTML all tags must be in lower case. Even  طراحی وب سایت   when coding in HTML, you should get in the habit of writing tags in lower case.

White space is ignored by web browsers. So, if you hit the space bar multiple times within a document, only one of those spaces will actually be displayed by the browser.

Tags can be nested. For example, <em> <strong>this text is italicized and bold</strong> </em>. Note that the order of nested tags is important: The container tags surrounding any content should be symmetrical.

Understanding the following tables:

 

Common HTML tags are presented below, organized into four tables based on their purpose. The first table includes tags that control the overall structure of the web page. The second and third tables include tags that mark up the majority of web page content. Container tags (those that contain content) are presented in the second table, and non-container tags (those that stand alone) are presented in the third table. The final table contains tags that are used in markup of HTML tables, which are covered in Module 5 of this unit.

 

Document Structure

 

Opening Tag

 

Closing Tag

 

Description

 

<html></html>Identifies the document as HTML.

<head></head>Identifies the header section of your document, which is used to provide information about the document for use primarily by search engines and browsers.

<title></title>The title of document. This element must be nested within the head elements.

<body></body>Contains all the visible content of a web page.

 

 

Content (Container) Tags

 

Opening Tag

 

Closing Tag

 

Description

 

<h1> to <h6></h1>to</h6>Headings. H1 is the main heading, H2 is secondary, etc.

<p></p>New paragraph.

<div> or <span></div> or </span>Serve as a container for content.

<em></em>Gives the contained text emphasis (usually as italics).

<strong></strong>Makes the طراحی وب سایت  contained text bold.

<a href = "document location"></a>Link to another document.

<a name = "label"></a>Link to another section of the same page.

<ol></ol>Makes ordered lists.

<ul></ul>Makes unordered (or bulleted) lists.

<li></li>Marks items in either the ordered or unordered list.

Empty (Non-Container) Tags

 

Tag

 

Description

 

<br />Causes a line break. It may be repeated for multiple line breaks.

<hr />Horizontal rule. It creates a line to separate content.

<img src ="image location" />Inserts an image into a web page.

<p />The paragraph tag used in this manner serves as a double line break. It does not contain text. Unlike the <br /> tag it cannot be used multiple times to generate more white space.

 

ارسال نظر برای این مطلب

کد امنیتی رفرش
اطلاعات کاربری
  • فراموشی رمز عبور؟
  • آرشیو
    آمار سایت
  • کل مطالب : 11
  • کل نظرات : 0
  • افراد آنلاین : 1
  • تعداد اعضا : 0
  • آی پی امروز : 0
  • آی پی دیروز : 13
  • بازدید امروز : 2
  • باردید دیروز : 9
  • گوگل امروز : 0
  • گوگل دیروز : 0
  • بازدید هفته : 11
  • بازدید ماه : 11
  • بازدید سال : 13
  • بازدید کلی : 472