2017-11-13 07:39:29
HTML refers to Hypertext Markup Language (Hyper Text Markup Language).
- HTML is not a programming language, but a Markup Language (Markup language)
- Markup language is a set of tag tags (markup tag)
- HTML uses tag tags to describe web pages
HTML tag tags are often referred to as HTML tags (html tag).
- HTML tags are keywords surrounded by angle brackets , such as
- HTML tags are usually paired up , such as <b> and </b>
- The first label in the pair is the start tag , the second is the end tag
- Start and end tags are also known as open tags and closed labels
HTML document = Web page
- HTML Document Description Web page
- HTML documents contain HTML tags and plain text
- HTML documents are also called Web pages
The purpose of a Web browser is to read HTML documents and display them as Web pages. Instead of displaying HTML tags, the browser uses tags to interpret the contents of the page:
Example explanation
- Text description page between
- The text between <body> and </body> is visible in the page content
- The text between
- Text between <p> and </p> is displayed as a paragraph
Another example:
<! DOCTYPE html>
Markup Language (Markup Language) uses a set of "tags" to "annotate" (annotate) plain text. For HTML, this set of tags is a variety of tags (tag), such as
Called the document type declaration (documents type Declaration). It declares that the type of this document is HTML5. There are multiple versions of HTML, different versions of the supported tags and their attributes, and the syntax is subtle, HTML5 is a widely used version. In addition, if an HTML text does not have a document type declaration, the browser enables Quirk mode to interpret the document. This model is primarily designed to be compatible with older, non-compliant HTML documents. You should always add a document type declaration to the newly written HTML document.
The beginning and end tags of the HTML text, and the HTML text always begins and ends with these two tags.
The head and body of the HTML text.
- The HTML title (Heading) is defined by tags such as
- The HTML paragraph is defined by the <p> tag.
- HTML links are defined by the <a> tag.
- HTML images are defined by tags.
- The HTML element refers to all the code from the start tag (start tag) to the end tag (end tag).
- Most HTML elements can have properties
Here are some common tags: Text;textarea;radio;checkbox;select;file;hidden;submit;reset;button
<HTML>
<Head><title>This is a test page</title></Head>
<Body><!--level headings --<H1><FontColor="Red">the contents of the Web page are displayed here. </Font></H1>
<!--links -<ahref="Http://www.baidu.com">this is a hyperlink. </a>
<!--table outer layer uses the table label, and the internal TR represents the table row, which is line-to-<TableAlign="Center"Border="1"width="80%"><TR><!--use TD to represent the column information, if you are using th, then the information in the column is bold and centered. -<th>AAA</th><TD>BBB</TD><TD>CCC</TD></TR><TR><!--Of course, you can also customize the format, where the center and bold are specified, and the effect of th is the same--<TDAlign="Center"><b>AAA</b></TD><TD>BBB</TD><TD>CCC</TD></TR></Table>
<form>Username:<inputtype="Text"><BR>Password:<inputtype="Password"><BR>Interests: Learning<inputtype="checkbox"><BR>Listen to the song<inputtype="checkbox"><BR>Travel<inputtype="checkbox"><BR>Gender:<BR>male<inputtype="Radio"name="Gender"><BR>female<inputtype="Radio"name="Gender"><BR>Education:<Select><option>Primary School</option><option>Junior High</option><option>High School</option></Select><BR/><BR/>Comments:<textarea></textarea>File submission:<inputtype="File"/><inputtype="Submit"/></form>
</Body>A brief analysis of Java web-html