MyTetra Share
Делитесь знаниями!
<style> - specify style sheet for the current HTML document
Время создания: 01.10.2017 11:07
Раздел: HTML
Запись: xintrea/mytetra_db_mcold/master/base/1506845250suk0qp6imq/text.html на raw.githubusercontent.com

<style> Tag

The HTML <style> tag is used to specify style sheet for the current HTML document. Following is an example to define few style sheet rules inside <style> tag −

<!DOCTYPE html>
<html>

   <head>
      <title>HTML style Tag Example</title>
      <base href = "http://www.tutorialspoint.com/" />
      
      <style type = "text/css">
         .myclass {
            background-color: #aaa;
            padding: 10px;
         }
      </style>
   </head>
	
   <body>
      <p class = "myclass">Hello, World!</p>
   </body>

</html>

This will produce the following result −

Note − To learn about how Cascading Style Sheet works, kindly check a separate tutorial available at https://www.tutorialspoint.com/css

 
MyTetra Share v.0.65
Яндекс индекс цитирования