How to set font style

Example analysis:

The font-style attribute specifies the font style of the text.

You can set the following attribute values:

●Normal: Default value, the browser displays a standard font style.

● italic: The browser will display an italic font style.​

● Oblique: The browser will display an oblique font style.       


#
Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <style> p.normal {font-style:normal;} p.italic {font-style:italic;} p.oblique {font-style:oblique;} </style> </head> <body> <p class="normal">这是一个段落,正常。</p> <p class="italic">这是一个段落,斜体。</p> <p class="oblique">这是一个段落,斜体。</p> </body> </html>
submitReset Code