Java Web Series---HTML

Source: Internet
Author: User

First, HTML overview

HTML, Hypertext Markup Language, Hyper Text markup language, for creating Web pages.

1) noun explanation
    • Hypertext: More powerful than normal text, can describe the text font, color, can show pictures and hyperlinks
    • Tags: tags, using different tags to show different types of content, such as using <p> tags to show paragraphs, using display pictures
    • Language: is a markup language, not a programming language
2) Writing Specifications
    • The suffix name of the file is. html or. htm
    • Tags must be tagged with < > tag name, e.g. <p>,
    • The notation of the property: key= "Value"
    • Notation:<!--Comments--
    • HTML is case insensitive, lowercase is recommended
3) Note
    • Place all content in
    • General labels have start and end tags, no end tags called empty labels
    • tags must be properly nested and closed (empty label use/close in start tag)
4) Example
<! DOCTYPE html>
    • <title>: Set page title
  • <body>: Body tag, storing the content of the page to be displayed

<meta charset= "Utf-8" > Set up the character set of the webpage to solve the Chinese garbled problem.

Second, common label 1) title

Format:

Description

A.

B. There is a built-in font size, text bold, occupy a line

Property:

Align alignment, left-aligned, center center, right-aligned

2) Font

Format:<font> Text </font>

Description

A. Deprecated, not recommended

B. You can set the font, size, and color of text

Property:

Face font

Size, value range 1~7, default value 3

Color colors

3) Paragraph

Format:<p> paragraph text </p>

4) Formatting text
    • Bold Body:<b></b>
    • Italic:<i></i>
    • Emphasizing:<strong></strong>
5) Empty Label
    • Horizontal:
    • Line break:<br/>
6) Image

Format:

Property:

src Picture Path

ALT replaces text

Title The text displayed when the mouse hovers

Width widths

Height altitude

7) List
    • Sequence list <ol>
      • The Type property value is set in the order of types, which are desirable values: 1 for the number, a for the English letter, I I for the Roman alphabet
    • Unordered list <ul>
      • The Type property value sets the kind of symbol, which is desirable: circle,disc,circle
<ol type= "A" >    <li>Java</li>    <li>Python</li>    <li>javascript</ Li></ol><ul type= "Circle" >    <li>A</li>    <li>T</li>    <li>b </li></ul>
8) Hyperlinks

Format: <a href= "" > Text or pictures </a>

Property:

The address of the href jump

Target how to open a link

_self this tab opens

_blank new Tab Opens

FrameName open in the specified frame

Java web series---HTML

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.