Java EE Web Learning Note day01

Source: Internet
Author: User

Part of the Web page:

HTML: Content (structure), the data that the page sees

CSS: Performance, content in the form of a page

javascript: Behavior, the response of page elements to interaction with input devices

Html:

Hypertext Markup Language ( English:HyperText Markup Language, abbreviation:HTML ) is a standard markup language for creating Web pages. HTML is a fundamental technique that is often used with CSS and JavaScript to design pleasing Web pages, Web applications, and user interfaces for mobile applications [1]. The Web browser can read the HTML file and render it into a Visual Web page. HTML describes the structure semantics of a Web site as clues appear, making it a markup language rather than a programming language.

The first HTML birth process (Hello World):

1, start, close the label.

<> things called tags, in the HTML is the case, the labels are paired, closed, that is, the label is a pair, one is to start the tag

Of course, there are also non-paired independent labels, called self-closing tags, such as <br/>

2. Add Head Label

Ps:

Head label

3, add the title tag,

Title Tags <title>

The title tag is a sub-label, which is in the header tag.

4. Body Body tag, add classic Hello world!

<body>

Hello world!

</body>

5. Copy to Notepad and change the suffix name to. html to run.

HTML a few common tags

<a> tag defines a hyperlink that is used to link from one page to another.

The most important attribute of the <a> element is the href attribute, which indicates the target of the link.

Target property Sets the connection destination object

_self represents the current window. To jump (default value)

_blank means opening a new window for jump connections

eg

<a href= "http://www.baidu.com" target= "_blank" > Baidu </a>

<ol> Label definition ordered list

<ol>
<li> Principals </li>
<li> Martial </li>
<li> Tigers </li>
</ol>

<ul> tags define unordered lists.

<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>

tags

Embed an image into your Web page.

Note that technically the, tag does not insert an image into the page, but instead links the image from the page. The tag creates a placeholder space for the referenced image.

The tag has two required properties: the SRC attribute and the alt attribute.

SRC attribute: Its value is the URL of the image file, which is the absolute or relative path to the file that references the image.

ALT attribute: The ALT attribute is a required property that specifies alternate text when an image cannot be displayed.

Width Property Set Widths

Height Property Set Altitude

Border property setting border size

eg

Just make a picture, huh, haha.

<table> Tags : define HTML tables.

A simple HTML table consists of a TABLE element and one or more tr, TH, or TD elements.

The TR element defines the table row,

th element defines the table header,

The TD element defines a table cell.

More complex HTML tables may also include caption, Col, Colgroup, THEAD, TFOOT, and tbody elements.

eg

<table border= "1" cellspacing= "0" >
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>Jan.</td>
<td>$100</td>
</tr>

<iframe> tags

The IFRAME element creates an inline frame (inline frame) that contains another document.

eg

<iframe src= "g:\ personal document \PHOTOS\***\QQ image 20160222102230.jpg" width= "" "Height=" name= "" * * "></iframe>

<form> Tags:

<form> tags are used to create HTML forms for user input.

A form can contain input elements such as text fields, checkboxes, radio boxes, submit buttons, and so on.

Forms can also contain menus, textarea, fieldset, legend, and label elements.

Forms are used to transfer data to the server.

eg

<form>

<input type="hidden" />

User name: <input type="text" value=" default value"/><br/>

Password: <input type="password" value="abc"/><br/>

Confirm Password: <input type="password" value="abc"/><br/>

Gender: <input type="Radio" name="Sex" checked="checked"/> male <input type="Radio" name="sex"/> Women <br/>

Hobbies: <input type="checkbox" checked="checked"/>java

<input type="checkbox" checked="checked"/>c++

<input type="checkbox" />javascript<br/>

Nationality:<select>

<option>--Please choose your nationality--</option>

<option selected="selected"> China </option>

<option> Small Japan </option>

<option> USA </option>

</select><br/>

Self-evaluation: <textarea rows="Ten "cols= ">12341243124</textarea><br/>"

<input type=" reset" value=" reset "/> <input type="Submit" value=" Submit " />

</form>

HTML Learning Summary:

1, first run out Hello World http://jingyan.baidu.com/article/4d58d5410637d69dd4e9c0cd.html

2, basically is the label to <body></body> Fill, label reference http://www.w3school.com.cn/tags/tag_iframe.asp

JavaScript, a high-level programming language, is a dynamic type, an object-oriented (prototype-based) literal language, by interpreting execution.

Compiling and parsing concepts

    • The compiler will use more time in advance to compile the entire source code of the whole program into another, the latter is often more close to the former machine code, so the efficiency will be higher. The time is consumed during the pre-compilation process.
    • The interpreter reads the source code on a line, interprets it, and executes it immediately. This often uses relatively simple lexical analysis, syntax analysis, compression interpretation of the time, the final generation of machine code, hardware execution. The interpreter is suitable for lower-level languages. However, compared to pre-compiled code, efficiency tends to be lower. How to reduce the number and complexity of interpretations is a challenge to improve the efficiency of the interpreter.

On the client side, JavaScript is traditionally implemented as an interpreted language, but recently it can be executed in an instant-compile (JIT) way. With the introduction of the latest HTML5 and CSS3 language standards it can also be used for the development of games, desktop and mobile applications, and for running on server-side network environments, such as node. js.

Java EE Web Learning Note day01

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.