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 "what basic knowledge points are in HTML". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "what basic knowledge points are in HTML"!
Basic structure of HTML the title of the page Write the body of the web page
Note: After writing the code, remember to save the format as.html (recommended) htm xhtml HTML basic structure detailed explanation
1. Content interpretation: Document markup of HTML documents, also known as HTML start tag Function: Indicates the beginning and end of a web page
2. HTML file header tag, also known as HTML header information Start tag function: Used to contain basic information of the file, such as the title of the page, keywords, etc. Tags: Note: The content will not be displayed in the browser
3. HTML title file function: the theme of the page, displayed in the browser window on the upper left!
4. Content explanation: HTML document body tag function: ... is the main part of the web page, in between this tag can include such as
、、
, and so on, which make up the pages we see.
Basic HTML tags
1. Format label:
Paragraph tags: Format:
What you want to segment
Function: Segmenting text on web pages Features: Large spacing
New line label format: label directly after the text you want to newline: note: it is a single label
Center tab formatting: The content you want to center allows paragraphs or text to be centered relative to the parent tab
2. Text labels
Title tag: Format: Title... Title function: define the text in the page Title characteristics: Title label exclusive line
Font Settings Label: Format: Text to be set Function: Modify text color, font, size. Common Attributes:
Old Wang font changed to red Change text font
Bold/oblique font for emphasis, usually bold
font-weight
indicate emphasis
3. Image label
We see not only text, but also pictures on the web page. Here's how to insert pictures into the web!
Format:
Detailed explanation of common attributes of labels
src attribute: Specify the path of the image we want to load, the name of the image, and the image format
width: Specify the width of the image in px, em, cm, mm
Height attribute function: specify the height of the image, unit px, em, cm, mm
border attribute function: specify the icon border width, unit px, em, cm, mm
alt attribute function:
When the image on the web page is loaded, move the mouse over it, and the attribute text function specified by the image will be displayed.
If the image does not download or fails to load, text will be used instead of the image display
Search engines can grab images by text of this attribute
III. Hyperlinks in web pages
Basic syntax link text or picture attribute explanation- href attribute: link address, link address can be a web page, can also be a video, picture, music and so on
Target attribute:
1. Role: Define the way hyperlinks are opened
Attribute value: _blank: opens the link in a new window
_seif(default): Opens the link in the current window
_parent: Opens the page in the parent window (used more in frames)
_top: Open files in the top-level window (used more in frames)
The name property specifies the anchor name of the page
Note: the format of the code space key and enter key does not play any role in the web page, we want to make the code clear and readable, we can use space and enter key layout.
At this point, I believe that everyone has a deeper understanding of "what basic knowledge points are in HTML", so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
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.