Basic concepts of HTML and vpn

Source: Internet
Author: User

Basic concepts of HTML and vpn
What is HTML?

HTML is a language used to describe web pages.

  • HTML refers to the hypertext markup language (HYperTExtMArkupLAnguage)
  • HTML is not a programming language, but a markup language)
  • A markup language is a set of markup tags)
  • HTML uses tag to describe Web pages
HTML Tag

HTML tag is usually called HTML tag ).

  • HTML tags are keywords surrounded by Angle brackets, such as
  • HTML tags are usually paired, such as <B> and </B>.
  • The first tag in the tag pair is the start tag, and the second tag is the end tag.
  • The start and end labels are also known as open and closed labels.
HTML Element

An HTML element refers to all the code from the start tag to the end tag.

Start tag Element Content End tag
<P> This is a paragraph </P>
<A href = "default.htm"> This is a link </A>
<Br/>    

Note: The start tag is often called an opening tag, and the end tag is often called a closed tag ).

HTML element syntax
  • The HTML element starts with the start tag.
  • HTML element ends with end tag
  • The content of an element is the content between the start tag and the end tag.
  • Some HTML elements have empty content (empty content)
  • Empty elements are closed in the start tag (end with the end of the start tag)
  • Most HTML elements have attributes

 

HTML attributes

HTML tags can have attributes. Attribute provides more information about HTML elements.

An Attribute always appears in the form of a name/value pair, for example, name = "value ".

Attributes are always specified in the starting tag of the HTML element.

Attribute Example 1:

<H1> define the beginning of the title.

<H1 align = "center"> has additional information about alignment.

TIY: center the title

Attribute Example 2:

<Body> defines the subject of an HTML document.

<Body bgcolor = "yellow"> you have additional information about the background color.

TIY: Background Color

Attribute Example 3:

<Table> define an HTML table. (You will learn more about HTML tables in a later chapter)

<Table border = "1"> has additional information about the table border.

 

HTML document = webpage
  • HTML document description webpage
  • HTML documents include HTML tags and plain text
  • HTML documents are also called Web pages

Web browsers read HTML documents and display them as webpages. The browser does not display HTML tags, but uses tags to explain the content of the page.

<Html> <body>
<H1> My First Heading

Example
  • Text description webpage between
  • The text between <body> and </body> is visible on the page.
  • The text between
  • The text between <p> and </p> is displayed as a paragraph
  • When you save an HTML file, you can use either. htm or. html file suffix. We use. htm In the instance. This is just a long-standing habit, because many software in the past only allowed file suffixes with three letters. However, there is no problem with using. html for new software.

 

 

 

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.