[re recognize HTML (3) and share 350 real Java interview questions

Cxy happy 2021-08-08 21:34:35
recognize html share real java

 Insert picture description here

head The contents of the element are “ Metadata ”( Metadata : Data that describes data )

  • Generally used to describe various information of web pages , such as Character encoding 、 Webpage title 、 Web icons


)title Elements : The title of the page

title Elements : The title of the page

 Insert picture description here


)meta Elements : Character encoding of web pages

meta The element is used for Set the character encoding of the web page , No setting or wrong setting will lead to garbled code

  • Generally used UTF-8 code , It covers almost all the words in the world

stay HTML5 Before ,meta The writing of labels is also more complex

 Insert picture description here

The elements listed below are mostly in head Element internal use :

  • meta

  • title

  • style

  • link

  • base

  • script

  • noscritpt


)base Elements : Set up a The default behavior of the element

base The element is used for Set all settings for the current page a The default behavior of the element ;base The elements are written in head In the elements

 Insert picture description here

body Elements : The specific content and structure of the web page

body The content in the element is what you see in the browser window , That is to say The specific content and structure of the web page

 Insert picture description here

Official documents are the most authoritative references , You can see HTML5 All relevant information

HTML5 Code specification detector :https://validator.w3.org/

h、p、strong Elements : Text style

h The element represents The title of the page (h1 ~ h6 There is a total stipulation that 6 The title of a level )

h Elements and SEO

h Elements contribute to the website's SEO (Search Engine Optimization) Optimize , Can promote keyword ranking

It is recommended that there be at most 1 individual h1 Elements

Misuse h Elements not only don't bring good weight to the website , At the same time, it may also be considered cheating by search engines , Finally lead to K standing

p Elements Represents a paragraph in an article (paragraph)

strong The element is used for Emphasize certain texts , Bold display effect

pre、code、br Elements : Structural pattern

By default ,HTML Most spaces in the code are compressed by the browser

  • For example, a continuous space will be compressed into 1 A space

If you want to Keep all HTML Space in the code 、 Line break , have access to pre Elements

 Insert picture description here  Insert picture description here

code The element is used for Display program code

br The element is Single label , Express Forced line wrap

Character entities : Show special symbols

HTML Some characters are reserved for special purposes , Like the less than sign <、 More than no. >

To display these reserved characters correctly in the web page , Character entities must be used , The writing format is generally 2 Kind of :

  • &entity_name;

  • &#entity_number;

 Insert picture description here

Common character entity :

  • Space :&nbsp;

  • More than no. :&gt;

  • Less than no. :&lt;

  • &:&amp;

img Elements : display picture

img The element is specifically used to display picture (img yes image Abbreviation )

<img src="https://www.baidu.com/img/bd_logo1.png" alt=" The space occupying words are ( When the picture fails to load, it displays )" width="100" height="100">

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.

src Property is used to set the path of the picture (URL)

  • Absolute path : Full path describing the file location

  • Relative paths : The path relationship with other files caused by the folder where this file is located

    . Represents the current folder , It can be omitted

    .. Represents the parent folder

  • For web pages , No matter what operating system , Path separators are /, No \

Be careful :

  • img If the element is only set width, The browser will automatically calculate... According to the image aspect ratio height

    width Empathy

  • stay HTML5 Specification ,alt yes img The necessary attributes of the element

  • widthheight The default unit for is px( Pixels )


) Pictures and pixels

web The commonly used picture formats are :

  • png: static picture , Support transparency

  • jpg: static picture , Transparency is not supported

  • gif: The dynamic image 、 static picture , Support transparency


  • Pixels (px) Is the smallest unit of image display

  • Each pixel can represent a color

  • The images displayed by the computer are composed of a pile of pixels

  • The more pixels make up the picture , The clearer the display

     Insert picture description here

The usual screen resolution , It's usually in pixels :

 Insert picture description here  Insert picture description here

a Elements : Define hyperlinks

a The role of elements : Define hyperlinks , Used to open a new URL

<!-- Clicking the link will automatically jump to Baidu page -->
<a rel="nofollow" href="https:///www.bbaidu.com"> Baidu </a>

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.

Common properties

  • href: Specify the... To open URL

    Hypertext Reference For short

  • target: Where to open URL

target There are the following values

  • _self: The default value is , Open... In the current window URL

  • _blank: Open in a new window URL

  • _parent: Open... In the parent window URL

  • _top: Open... In the top window URL

  • Some frame Of name value : In a certain frame Open in URL

     Insert picture description here

reflection :a Element must be used to jump to a new page ?

  • Add the following URL Put it in a Elemental href Properties will cause different effects

<!-- Download the file -->
<!-- Send E-mail -->
mailto:[email protected]
<!-- Open the corresponding tool to download -->
<!-- Open Xunlei to download -->

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.


)iframe Elements : The embedded HTML file

iframe Elements can implement : In a HTML Embed other in the document HTML file

<iframe src="https://www.baidu.com" frameborder="1" width="400px" height="400px">

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.

frameborder Property is used to specify whether a border is displayed :1- Show 、0- No display


) Anchor link : Jump in the web page

Anchor links can achieve : Jump to a specific location in the web page

<a rel="nofollow" href="#one">go</a>

  • 1.
  • 2.
  • 3.

Click on go It will be positioned to :

  • id The value is one Any element of

  • name The value is one Of a Elements

<a rel="nofollow" href="#"> Back to the top </a>

  • 1.
  • 2.
  • 3.

If href="#" After clicking, it will Go back to the top of the current page

<a rel="nofollow" href="index.html#one"> The first section of the home page </a>

  • 1.
  • 2.
  • 3.

Using the above methods can Jump to the specified location on another page

 Insert picture description here


) Pseudo link : Click not to jump URL

Pseudo link : Links that do not specify a specific link address

  • Sometimes clicking on a link doesn't want to open a new URL, But want to do something else , You can use Pseudo link

  • What do you want to do after clicking the link , The corresponding JavaScript Code

If you don't do anything for the time being , You can write it in the following form :

<a rel="nofollow" href="#" onclick="return false;"> Pseudo link 1</a>
<a rel="nofollow" href="javascript:"> Pseudo link 2</a>

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.

So sometimes you can use links as buttons


) Picture links

img Element heel a Elements used together , Can realize picture link

 Insert picture description here



Browser access  https://www.baidu.com/img/bdlogo.gif The process of :

 Insert picture description here

What is? URL?

  • URL The full name is Uniform Resource Locator( Uniform resource locator )

  • URL It's the address of the resource 、 Location , Every resource on the Internet has a unique URL

  • adopt 1 individual URL, Can find the only one on the Internet 1 A resource

URL The basic format of = protocol://hostname/path = agreement :// The host address / route

 Insert picture description here

URL Common protocols :

  • http: Hypertext transfer protocol , Access to remote network resources , The format is http://

    http Protocol is the most commonly used protocol in network development

    https The agreement is equivalent to http Secure version of the protocol

  • file: Access to resources on the local computer , The format is file://( No need to add the host address )

  • mailto: It's an email address , The format is mailto:

  • ftp: Access the file resources of the shared host , The format is ftp://

  • ed2k: By supporting ed2k( Dedicated download link ) Agreed P2P Software access to the resource , The format is ed2k://

    For Software : Emule

  • thunder: By supporting thunder( Dedicated download link ) Agreed P2P Software access to the resource , The format is thunder://

    For Software : thunderbolt

URL The more specific and complete syntax format is :

  • protocol://hostname[:port]/path/[;parameters][?query]#fragment

  • example : http://www.baidu.com:80/s?wd=ios#page

port: Port number

  • One has IP The host of the address can provide many services , such as Web service 、FTP service 、SMTP Service etc.

  • The host by “IP Address + Port number ” To differentiate between different services , The port number is similar to the window of the business hall


Share some information to everyone , I think these are very useful things , You can also follow to learn , Leak filling .

Get the full version of : Crazy poke here to get free ~

《Java Advanced interview 》

《Java Advanced architecture knowledge 》

《 Algorithmic knowledge 》

本文为[Cxy happy]所创,转载请带上原文链接,感谢

  1. HTML + CSS + JavaScript to achieve cool Fireworks (cloud like particle text 3D opening)
  2. HTML + CSS + JavaScript realizes 520 advertising love tree (including music), which is necessary for programmers to express themselves
  3. Solve the problem of Web front-end deployment server (it can be deployed online without a server)
  4. HTML + CSS + JS make wedding countdown web page template (520 / Tanabata Valentine's Day / programmer advertisement)
  5. What else can driverless minibus do besides "Park connection"?
  6. Cloud native leads the era of all cloud development
  7. NRM mirror source management tool
  8. Bring it to you, flex Jiugong
  9. Lolstyle UI component development practice (II) -- button group component
  10. Deconstruction assignment in ES6
  11. Luo 2 peerless Tang clan was officially launched. The official gave a key point, and the broadcast time was implied
  12. 20初识前端HTML(1)
  13. 当新零售遇上 Serverless
  14. 20 initial knowledge of front-end HTML (1)
  15. When new retail meets serverless
  16. [golang] - go into go language lesson 5 type conversion
  17. [golang] - go into go language lesson 6 conditional expression
  18. HTML5(八)——SVG 之 path 详解
  19. HTML5 (8) -- detailed explanation of SVG path
  20. 需要开通VIP以后页面内容才能复制怎么办?控制台禁用javascript即可
  21. Web前端|CSS入门教程(超详细的CSS使用讲解,适合前端初学者)
  22. 实践积累 —— 用Vue3简单写一个单行横向滚动组件
  23. Serverless 全能选手,再下一城
  24. What if you need to open a VIP to copy the page content? Just disable JavaScript on the console
  25. Web front end | CSS introductory tutorial (super detailed CSS explanation, suitable for front-end beginners)
  26. Practice accumulation - write a single line horizontal scroll component simply with vue3
  27. Dili Reba is thin again. She looks elegant and high in a strapless hollow skirt, and her "palm waist" is beautiful to a new height
  28. Serverless all-round player, next city
  29. The difference between MySQL semi synchronous replication and lossless semi synchronous replication
  30. Vue表单设计器的终极解决方案
  31. The ultimate solution for Vue form designer
  32. Nginx从理论到实践超详细笔记
  33. Yu Shuxin's red backless swimsuit is split to the waist and tail, with a concave convex figure and excessive color matching, and his face is white to dazzling
  34. Nginx ultra detailed notes from theory to practice
  35. 【动画消消乐|CSS】086.炫酷水波浪Loading过渡动画
  36. typecho全站启用https
  37. CCTV has another popular employee. The off-site interpretation is very professional, and the appearance ability is no less than that of Wang Bingbing
  38. [animation Xiaole | CSS] 086. Cool water wave loading transition animation
  39. Enable HTTPS in Typecho
  40. 50天用JavaScript完成50个web项目,我学到了什么?
  41. 根据JavaScript中原生的XMLHttpRequest实现jQuery的Ajax
  42. What have I learned from completing 50 web projects with JavaScript in 50 days?
  43. "My neighbor doesn't grow up" has hit the whole network. There are countless horse music circles, and actor Zhou Xiaochuan has successfully made a circle
  44. 根据JavaScript中原生的XMLHttpRequest实现jQuery的Ajax
  45. Implement the Ajax of jQuery according to the native XMLHttpRequest in JavaScript
  46. Implement the Ajax of jQuery according to the native XMLHttpRequest in JavaScript
  47. 30 + women still wear less T-shirts and jeans. If they wear them like stars, they will lose weight
  48. 数栈技术分享前端篇:TS,看你哪里逃~
  49. Several stack technology sharing front end: TS, see where you escape~
  50. 舍弃Kong和Nginx,Apache APISIX 在趣链科技 BaaS 平台的落地实践
  51. Abandon the landing practice of Kong and nginx, Apache apisik on the baas platform of fun chain technology
  52. 浪迹天涯king教你用elementui做复杂的表格,去处理报表数据(合并表头,合并表体行和列)
  53. 前端HTML两万字图文大总结,快来看看你会多少!【️熬夜整理&建议收藏️】
  54. Wandering around the world king teaches you to use elementui to make complex tables and process report data (merge header, merge table body rows and columns)
  55. 路由刷新数据丢失 - vuex数据读取的问题
  56. Front end HTML 20000 word graphic summary, come and see how much you can【 Stay up late to sort out & suggestions]
  57. Route refresh data loss - vuex data reading problem
  58. Systemctl系统启动Nginx服务脚本
  59. Systemctl system startup nginx service script
  60. sleepless