Home > Web Front-end > Front-end Q&A > What is the markup in HTML that represents inline CSS styles?

What is the markup in HTML that represents inline CSS styles?

烟雨青岚
Release: 2020-06-18 11:43:42
Original
16927 people have browsed it

What is the markup in HTML that represents inline CSS styles?

#What is the tag that indicates inline css style in html?

html indicates inline The mark of css style is

Write css inside the html file, which is called embedded Embedding (also called inner page style ), which creates an embedded style sheet on the web page.

The internal style sheet is as follows:

<head>
<style type="text/css">  
    body {background-color: red}  
    p {margin-left: 20px}
</style>  
</head>
Copy after login

When a single file requires special styling, the internal style sheet can be used. Internal style sheets can be defined in the head section via the