HTML Learning Notes

Source: Internet
Author: User

Html:
is a language used to describe a Web page.
Hypertext Markup Language Hyper Text Markup Language
Not a programming language, it's a markup language.


New features:
Canvas labels for painting
Video and audio elements, AV files for media playback
Better support for local off-line storage
New element content: such as article, footer, header, nav, section
New form controls: such as: Calender, date, time, email, url, search
Browser support: Chrome, Firefox, and opera and IE9


Development tools:
Commonly used: Webstorm, notepad++, Eclipse, Text Sublime, Dreamweaver, etc.
Recommendation: Intellij idea

Skills that need to be mastered:
HTML5 XHTML CSS3 JavaScript jquery:jquery-ui jquery-mobile

HTML Basics:

Disclaimer: <! Doctype>
HTML also has a number of different versions, only fully understand the exact HTML version used in the page, the browser can be completely correct
To display the HTML page. This is <!. The usefulness of doctype>

Different versions of HTML have different HTML declarations
To HTML5 Direct use: <! DOCTYPE html>

Common Label Properties:
<body>:bgcolor background Color
<a>:target specify where to open the connection

Common Properties:
Class: The name of the specified element
ID: Specify element Unique ID
Style: The styling of the specified element
Title: Additional information for the specified element

Formatting:
<b> Bold text
<big> large characters------HTML5 obsolete usually use CSS instead
<em> emphasis on text
<i> Italic characters
<small> Small characters
<strong> aggravating tone
<sub> subscript Word
<sup> superscript Word
<ins> define Insert Words
<del> define Delete words

HTML5 styles, joins, and tables

Label:
<style> style definition
<link> resource references----such as introducing CSS styles

Property:
Rel= "stylesheet": External style sheet
Type= "TEXT/CSS": Types of documents introduced
Margin-left: Margin----distance from the left or right

Three ways to insert style sheets:

External style sheet: Reference link->rel http refernece link->href
<link rel= "stylesheet" type= "Text/css" href= "Mystyle.css" >

Internal style sheet:
<style type= "Text/css" >
Body{background-color:red}
p{margin-left:20px}
</style>

Inline style sheet:
<p style= "color:red" >

Connection properties and their use:

1. Connection data:
Text connection
Picture connection

2. Properties:
HREF attribute: Link to another document
Name property: Create a connection to a document

3. Imag Tag Properties:
ALT: Replace Text property
Width: Wide
Height: High

HTML table
<table> definition Table
<caption> table title
Table headers for <th> tables
Rows of the <tr> table
Units for <td> tables
<thead> Header of the table
<tbody> the body of the table
<tfoot> Footer for tables
<col> Column Properties for tables

HTML list:
<ol> ordered list
<ul> unordered List
<li> list Items
<dl> List
<dt> list Items
<dd> description

Unordered list using tags:<ul>, <li>
Properties: Disc, Circle, Square

Sequential tables using tags:<ol>, <li>
Properties: A, a, I, I, start

Nested lists using tags:<dl>, <dt>, <dd>

HTML blocks:

Block elements:
When a block element is displayed, it usually starts with a new line, such as:
Inline elements:
Inline elements typically do not start with new lines, such as:<b> <a> <imag>

<div> elements: Also being a block element, which is primarily a container for combining HTML elements

<span> elements: is an inline element that can be used as a container for text

HTML Layout:
div or table to lay out

HTML form:
Forms are used to get different types of user input

Common Tags:
<form> Forms
<input> input Fields
<textarea> text fields
<label> Control Labels
<fieldset> Defining fields
Title of the <legend> field
<select> SELECT list
<optgroup> option Groups
<option> options in the drop-down list
<button> buttons

HTML Learning Notes

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.