In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "what are the commonly used tags in Java's HTML". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the commonly used tags in Java's HTML".
1. Format:
A: by observing the format, it is found that
The Html code ends with the beginning. It consists of two parts: the head part and the body part.
The header part is to add some auxiliary or attribute information to the Html page, and the content in it will be loaded first.
The body part is the place where the page data is actually stored.
B: interpretation of the format
Html: put it at the beginning of the html file, but there is no substantive function. Even without this tag, the browser will parse when it encounters other html tags.
The browser has a built-in parser for html.
You can set the default open browser: tools-folder options-File Type
Head: header tags that place information about this html file, such as providing an index, defining a css, and so on.
Title: the title tag, contained within the head tag, is used to set the title of a web page.
Body: the body tag within which all the content that the web page needs to display is placed.
two。 What suffix does it end with
To. Html or... Htm to end.
3. The browser can parse HTML files.
1. A general tag has a beginning and an end, and if there is only a single function, it can end inside the tag.
two。 Change the properties to achieve a good display effect
3. Attribute values can be in double quotation marks, single quotation marks, or no quotation marks, usually in double quotation marks, or according to company specifications.
1. After installing MyEclipse, set the coding of the workspace first.
Window-preferences-General--workspace- chooses UTF-8 encoding
two。 After creating the file of HTML, if it is not the encoding of UTF-8, you can set it.
Window-preferences-MyEclipse-Files and Editors-HTML- is modified to UTF-8 code.
3. After creating a file for HTML, you can choose how to open it and set the default opening method.
Window-preferences-General-Editors-File
Associations- Select * .html-Select MyEclipse HTML Editor-, select default-, select ok
1. Typesetting label
(1) newline labels (less used)
(2) horizontal line
Attribute: color: color
Color is written in two ways: 1) English words of color 2) RGB tricolor (red green blue) # ffffff?
Attribute: width: width
Values can be written in two ways: 1) pixel values (300px) 2) percentages (30%)
Difference: the percentage changes with the size of the browser, but not the pixels.
Attribute: size: controls the thickness of the horizontal line. The units are pixels.
Attribute: align: controls the alignment of horizontal lines
(3) spaces:
(4) paragraph tags (relatively frequently used)
Features: a blank line is generated at the beginning and the end, respectively.
Attribute: align: the display position of the text in an aligned manner.
Value: left,center,right
(5)
The tag is as simple as declaring an area on the browser.
Difference: there is a line break after div, but not in span.
(6) Block-level elements and inline elements (understanding)
1) the intuitive difference between in-line elements and block-level elements?
The elements in the line will be arranged in a straight line, all on the same line, horizontally.
Block-level elements occupy a row and are arranged vertically. Block-level elements start and end with a new line, followed by a line break.
2) Block-level elements can contain inline elements and block-level elements. Inline elements cannot contain block-level elements.
Eg. The example can be copied to. In the html file, open it with a browser to view the results, and compare them with each other.
two。 Font label
(important)
Attribute: color: color
Thank you for your reading, these are the contents of "what are the commonly used tags of Java HTML?" after the study of this article, I believe you have a deeper understanding of what the commonly used tags of Java HTML have, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.