[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

  • 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 -->
https://github.com/CoderMJLee/MJRefresh/archive/master.zip
<!-- Send E-mail -->
mailto:12345@qq.com
<!-- Open the corresponding tool to download -->
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E24.END.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.WEB-HR.AAC.1024X576.x264-%E4%BA%BA%E4%BA%BA%E5%BD%B1%E8%A7%86.mp4|194911068|a3285a9ddbea54f5200d3367ec376a58|h=ky54pschiappe5afeqic3oujrue7sxta|/
<!-- Open Xunlei to download -->
thunder://QUFodHRwOi8vNDEuZGwueTgwcy5uZXQ6OTIwLzEzMDMvW+a1t+i0vOeOi13nrKw1ODbpm4YvW+a1t+i0vOeOi13nrKw1ODbpm4ZfaGQubXA0Wlo=

  • 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">
</iframe>

  • 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

URL

======================================================================

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

Last

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]所创,转载请带上原文链接,感谢
https://javamana.com/2021/08/20210808213335345d.html

  1. 【计算机网络 12(1),尚学堂马士兵Java视频教程
  2. 【程序猿历程,史上最全的Java面试题集锦在这里
  3. 【程序猿历程(1),Javaweb视频教程百度云
  4. Notes on MySQL 45 lectures (1-7)
  5. [computer network 12 (1), Shang Xuetang Ma soldier java video tutorial
  6. The most complete collection of Java interview questions in history is here
  7. [process of program ape (1), JavaWeb video tutorial, baidu cloud
  8. Notes on MySQL 45 lectures (1-7)
  9. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  10. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  11. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  12. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  13. 【递归,Java传智播客笔记
  14. [recursion, Java intelligence podcast notes
  15. [adhere to painting for 386 days] the beginning of spring of 24 solar terms
  16. K8S系列第八篇(Service、EndPoints以及高可用kubeadm部署)
  17. K8s Series Part 8 (service, endpoints and high availability kubeadm deployment)
  18. 【重识 HTML (3),350道Java面试真题分享
  19. 【重识 HTML (2),Java并发编程必会的多线程你竟然还不会
  20. 【重识 HTML (1),二本Java小菜鸟4面字节跳动被秒成渣渣
  21. [re recognize HTML (3) and share 350 real Java interview questions
  22. [re recognize HTML (2). Multithreading is a must for Java Concurrent Programming. How dare you not
  23. [re recognize HTML (1), two Java rookies' 4-sided bytes beat and become slag in seconds
  24. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  25. RPC 1: how to develop RPC framework from scratch
  26. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  27. RPC 1: how to develop RPC framework from scratch
  28. 一次性捋清楚吧,对乱糟糟的,Spring事务扩展机制
  29. 一文彻底弄懂如何选择抽象类还是接口,连续四年百度Java岗必问面试题
  30. Redis常用命令
  31. 一双拖鞋引发的血案,狂神说Java系列笔记
  32. 一、mysql基础安装
  33. 一位程序员的独白:尽管我一生坎坷,Java框架面试基础
  34. Clear it all at once. For the messy, spring transaction extension mechanism
  35. A thorough understanding of how to choose abstract classes or interfaces, baidu Java post must ask interview questions for four consecutive years
  36. Redis common commands
  37. A pair of slippers triggered the murder, crazy God said java series notes
  38. 1、 MySQL basic installation
  39. Monologue of a programmer: despite my ups and downs in my life, Java framework is the foundation of interview
  40. 【大厂面试】三面三问Spring循环依赖,请一定要把这篇看完(建议收藏)
  41. 一线互联网企业中,springboot入门项目
  42. 一篇文带你入门SSM框架Spring开发,帮你快速拿Offer
  43. 【面试资料】Java全集、微服务、大数据、数据结构与算法、机器学习知识最全总结,283页pdf
  44. 【leetcode刷题】24.数组中重复的数字——Java版
  45. 【leetcode刷题】23.对称二叉树——Java版
  46. 【leetcode刷题】22.二叉树的中序遍历——Java版
  47. 【leetcode刷题】21.三数之和——Java版
  48. 【leetcode刷题】20.最长回文子串——Java版
  49. 【leetcode刷题】19.回文链表——Java版
  50. 【leetcode刷题】18.反转链表——Java版
  51. 【leetcode刷题】17.相交链表——Java&python版
  52. 【leetcode刷题】16.环形链表——Java版
  53. 【leetcode刷题】15.汉明距离——Java版
  54. 【leetcode刷题】14.找到所有数组中消失的数字——Java版
  55. 【leetcode刷题】13.比特位计数——Java版
  56. oracle控制用户权限命令
  57. 三年Java开发,继阿里,鲁班二期Java架构师
  58. Oracle必须要启动的服务
  59. 万字长文!深入剖析HashMap,Java基础笔试题大全带答案
  60. 一问Kafka就心慌?我却凭着这份,图灵学院vip课程百度云