Html learning (2) font bold italic underline label learning, font underline

Source: Internet
Author: User

Html learning (2) font bold italic underline label learning, font underline

Code:

<Font size = "10"> 6 </font> <font size = "2"> 6 </font> <font color = "red" size = "10"> red 6 with a font size of 10 </font> <font face = "" size = "20"> This is a black word </font> <B> bold </B> <I> italic </I> <u> underline </u>

Effect:


Introduction:

The most common label is <font>, which is used to change the font, font size, and text color.

Bold, underlined, and italic characters are also commonly used text effects, which are represented by <B>, <u>, <I> respectively:



Can font in html <style> be bold or italic?

Font can be bold, such as: font: blod 12px ""; here the blod is bold, it can be 100 to 900, Italic or oblique in Italic, 12 PX is the font size, 18 PX is the font size. font must be written to the font size and name to take effect. Other attributes cannot be written. For example, font: 12px ""; correct font: 12px; it is invalid. If you only want to use font-weight: 100-900 separately in bold; if you only want to use font-style: italic; or font-style: oblique in italic

Html font size, color, bold, and underline code (partial)

On the first floor, I copied it from someone else and did not sort it out. I 'd like to explain it to you in a simple and clear way.

<Font size = "12px"> </font> font size: the font size is set to 12 pixels. You can also set other sizes. Note that the Unit can be other pixels, such as centimeters.
<Font color = "red"> </font> the font color is set to red here. It can also make blue green or more precise 16-digit values, such as #873422.
<Strong> </strong> font bold (<B> </B> can also be used, not recommended)
<U> </u> underline
-----------------------------------------------------
<H1 align = "center"> First, Align = "center" is the property center is the value. That is, left and right are left and left in the middle of the page to display the title on the left or right ..
---------------------------------------
The plug-in is now used to control the appearance and performance of webpages. css is used to control the style sheets. For example, we write such titles. <H1 align = "center"> html text style This code shows two subtitles in the main title play. h2 is displayed on the right of the next webpage.
------ This is not the case with css,
Direct content Then write the style h1 {text-align = "center" ;}, h2 {text-align = "right ";} of course, the css code of this control style should be written in the style <style> </style> label, which is not described here.

Ask me more if you have any questions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.