当前位置:网站首页>Web learning record (medium)
Web learning record (medium)
2022-04-23 02:24:00 【jigsaw_ zyx】
In continuous learning …
Recently, the short poem competition is in full swing , Many people's romantic feelings are bursting out , Here are examples of poems from the short poem contest , If you like, you can also go and have a look ..
List of articles
Tabs tab
Paragraphs and line breaks
As you can see in the previous example , We use p Element definition paragraph .p The element is HTML One of the most commonly used elements in .
Examples are as follows :
example 1.
<p> Hypertext markup language (HTML) Is a standardized way to create Web Page and Web Applied standardized markup language . In the cascading style form (CSS) and JavaScript With the help of the ,HTML Has successfully built a set of oriented Web Development and application platform .</p>
example 2.
<p> Hypertext markup language (HTML) Is a standardized way to create Web Page and Web Applied standardized markup language .
In the cascading style form (CSS) and JavaScript With the help of the ,HTML Has successfully built a set of oriented Web Development and application platform </p>
example 1 And example 2 The only difference is , example 2 In, we wrap lines in the content of the paragraph . that , When actually displayed , Will line breaks be displayed ?
The display effect is as follows :
You can see , Although we wrap lines in the paragraph , But there is no line break when displaying . So what do we do if we want to wrap a line in a paragraph ?
We can use <br>
label .
Examples are as follows :
<p> Hypertext markup language (HTML) Is a standardized way to create Web Page and Web Applied standardized markup language .<br>
In the cascading style form (CSS) and JavaScript With the help of the ,HTML Has successfully built a set of oriented Web Development and application platform </p>
The display effect is as shown in the figure :
list
We often use lists in our life , For example, shopping lists 、 To do list . stay HTML in , We can create unordered lists 、 Ordered list and description list , And another list can be nested in one list .
Usually , Lists are made up of parent and child elements , The parent element is used to specify the type of list to be created , The child element is used to specify the type of list item to be created .
The elements of the three list types are as follows :
| type | Parent element | Subelement |
| ------------ | ------------ |
| Ordered list | ol | li|
| Unordered list | ul | li|
| Description list | dl| dt, dd|
Tips :
ol: order list;
ul: unorder list.
Ordered list instance
If the order of the list cannot be exchanged at will , We use ordered lists . for example :
<body>
<p> Basic exercise steps in the gym </p>
<ol>
<li> Warm up </li>
<li> Anaerobic exercise ( Including push ups 、 sit-ups 、 Equipment exercise, etc )</li>
<li> Aerobic exercise ( Including jogging 、 A bike 、 swimming 、 Mountaineer, etc )</li>
<li> The tensile 、 Relax </li>
</ol>
</body>
The display effect is as shown in the figure :
Unordered list instance
If the order of the list is not important , We use unordered lists . for example :
<body>
<p> Shopping list </p>
<ul>
<li> yogurt </li>
<li> Apple </li>
<li> chicken breast </li>
<li> Incandescent light bulbs </li>
</ul>
</body>
The display effect is as shown in the figure :
Describe list instances
When we need to describe the names that appear in groups ( The term ) And its value , We use a description list . for example :
<body>
<p>HTML Milepost </p>
<dl>
<dt>1995 year 11 month 24 Japan </dt>
<dd>HTML2.0 Release , Corresponding IETF The document for RFC 1866</dd>
<dt>1997 year 1 month 14 Japan </dt>
<dd>HTML 3.2 With W3C Published in the form of recommended standards . And then HTML The standards are made up of W3C Organization Publishing .
<dt>1997 year 12 month 18 Japan </dt>
<dd>HTML 4.0 Release .</dd>
<dt>2014 year 10 month 28 Japan </dt>
<dd>HTML5 Release .</dd>
<dt>2016 year 11 month 1 Japan </dt>
<dd>HTML 5.1 Release .</dd>
</dl>
</body>
The display effect is as shown in the figure :
text formatting
A web page usually contains text information , For different text types , We can choose the right HTML Semantic elements are marked . for example ,em Element is used to mark and emphasize part of the content ,small Element is used to annotate 、 Signature and other types of text .
Common elements are as follows :
Elements meaning give an example
strong Show the importance of content -
em Indicates the focus of the content -
mark Indicates that the content is highlighted Highlight search terms in search results pages or articles
small A marginal note indicating details Usually include disclaimers 、 matters needing attention 、 Legal restrictions 、 Copyright information, etc
b Words that readers are expected to pay attention to Such as the keywords in the document summary 、 Product name in comments 、 Article introduction, etc
i Represents text that is different from other text , Having a different voice or tone Such as the name of the classification 、 Technical terminology 、 Translated prose, etc
sub Define subscripts Common subscripts include chemical symbols, etc
sup Define superscript Common superscripts include trademark symbols 、 Index and footnote number, etc
stay HTML5 in , More emphasis on semantics . therefore , When we choose which element to use for text markup , We should focus on semantics , Not the style .
What does that mean ? Don't use... To tilt a paragraph i Elements , But this passage has i The semantics of elements . If you just want the text to tilt , We should write CSS To change .
Examples are as follows :
<body>
<h1> The first chapter of the Analects of Linguistics </h1>
<p><small>
<b> author :</b><abbr title=" Mingqiu , Zizhongni "> Confucius <sup><a href="#">1</a></sup></abbr>(<time> front 551 year 9 month 28 Japan - front 479 year 4 month 11 Japan </time>)
</small></p>
<h2> This quotation </h2>
<p>《 Learn from 》 yes 《 The analects of Confucius 》 The title of the first article .《 The analects of Confucius 》 The first two or three words of the first chapter are generally used as the title of each article in the .《 Learn from 》 One article includes 16 Chapter , The content involves many aspects . The point is
<strong>「 I'll save myself three times a day 」;「 Save and love , Let the people use their time 」;「 The use of propriety , Harmony is precious 」 And benevolence 、 Filial piety 、 Letter, etc </strong> Moral category .</p>
<h2> original text </h2>
<p> Confucius said :「<mark> Learn from time to time , Not to mention ?</mark> Friends come from afar , joy ? I don't know , Not sullen , Not a gentleman ?」 </p>
</body>
It is shown as follows :
quote
HTML There are also elements used to mark references in ——q and blockquote Elements :
q Element is used for short references , Such as the quotation in the sentence ;
blockquote Element represents a separate reference , It defaults to a new line .
Examples are as follows :
<body>
<h1>W3C</h1>
<p>
<dfn>W3C</dfn> (World Wide Web) The World Wide Web Alliance was founded in 1994 year . It is
<q>Web The most authoritative and influential international neutral technical standards institution in the field of Technology </q>.
</p>
<p> Its official definition </q> by :</p>
<blockquote cite="https://www.w3.org/">
The World Wide Web Consortium (W3C) is an international community that develops open standards to ensure the long-term growth of the Web.
</blockquote>
</body>
The display effect is as shown in the figure :
among ,blockquote Elemental cite Property specifies the reference source link
form
Video and audio
版权声明
本文为[jigsaw_ zyx]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220830499097.html
边栏推荐
- Tp6 Alibaba cloud SMS window reports curl error 60: SSL certificate problem: unable to get local issuer certificate
- Numerical remapping method (remap)
- Find the largest number of two-dimensional arrays
- ThinkPHP kernel development blind box mall source code v2 0 docking easy payment / Alibaba cloud SMS / qiniu cloud storage
- 006_redis_jedis快速入门
- Consider defining a bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs‘
- Lighting LED of IAR embedded development stm32f103c8t6
- openstack 服务的启动
- Redis memory recycling strategy
- SQL server2019无法下载所需文件,这可能表示安装程序的版本不再受支持,怎么办了
猜你喜欢
If 404 page is like this | daily anecdotes
想体验HomeKit智能家居?不如来看看这款智能生态
每日一题(2022-04-21)——山羊拉丁文
Real math problems in 1958 college entrance examination
VMware virtual machine installation openwrt as side route single arm route img image to vmdk
一个国产图像分割项目重磅开源!
Day18 -- stack queue
Talk about current limiting
都是做全屋智能的,Aqara和HomeKit到底有什么不同?
[chrome extender] content_ Cross domain problem of script
随机推荐
89 logistic regression user portrait user response prediction
009_Redis_RedisTemplate入门
RT_ Thread ask and answer
牛客手速月赛 48 C(差分都玩不明白了属于是)
【Chrome扩展程序】content_script的跨域问题
Log4j2 configuration
005_ redis_ Set set
013_ Analysis of SMS verification code login process based on session
R language advanced | generalized vector and attribute analysis
Develop a chrome plug-in from 0 (2)
JSP page nesting
一、序列模型-sequence model
今天终于会写System.out.println()了
Wechat public platform test number application, authorized login function and single sign on using hbuilder X and wechat developer tools
tp6阿裏雲短信 window 報 cURL error 60: SSL certificate problem: unable to get local issuer certificate
Day18 -- stack queue
006_ redis_ Sortedset type
全局、独享、局部路由守卫
012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
Startup of openstack service