分享兴趣,传播快乐,增长见闻,留下美好!亲爱的您,这里是Learning yard新学苑。今天小编为大家带来话说前端(4)|与文字有关的标签。
Share interest, spread happiness, increase knowledge, and leave behind beauty! Dear you, this is Learning yard New Academy. Today, Xiaobian brings you the front end of words (4)| Tags related to words.
首先我们知道,我们可以直接在body标签里写字,这样就可以运行,并且可以在浏览器上看到我们写的字,但是如何让字体更加美观呢?
First of all, we know that we can write directly in the body tag, so that it can run, and we can see our written words on the browser, but how to make the font more beautiful?
对于字体来说,有许多标签可以使用,比如 空格用于段首缩进(用英文的分号才可以。)还有强制换行<br>,这样就可以做到在下一行写字。
For fonts, there are many labels that can be used. For example, spaces are used to indent the beginning of paragraphs (only semicolons in English can be used. ) There are also forced line breaks < br >, so that you can write on the next line.
并且用<center></center>就可以让字体居中,用p标签来表示一个段落让我们的文章更加有层次感。
And with < center></center >, the font can be centered, and using p tag to represent a paragraph makes our article more layered.
还有<span>可以用来包裹字体,这样子就可以用接下来的标签,font来改变字体的颜色,字体种类
There is also < span > which can be used to wrap fonts, so that the next label, font, can be used to change the color and type of fonts.
并且还有i标签b标签u标签以及sub下标签以及上标签sup
其他的标签就不演示了,i标签:斜体
b标签:加粗
u标签:加下划线
Del标签:加删除线
And I label, b label, u label, sub lower label and upper label sup.
Other labels will not be demonstrated, I label: italics
B: bold
U: underlined
Del tag: strikethrough
最后讲一下html的注释<!--- ..... --->,必须按照这样的格式,其中vscode加注释得快捷按键就是ctrl+?键
Finally, let's talk about the comments of html <! -...->, it must be in such a format, where the shortcut key of vscode with comments is ctrl+? key
今天的分享就到这里了。如果您对今天的文章有什么独特的想法,欢迎评论留言,让我们相约明天,祝您今天过得开心快乐!
That's all for today's sharing. If you have any unique ideas about today's article, please comment and leave a message. Let's make an appointment tomorrow and wish you a happy day!
翻译来源:谷歌翻译
本文为learningYard新学苑原创,如有侵权请联系删除。