w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



style ... ⁄style syntax

Syntax style

Examples style syntax

Valid Syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<html>
<head>
<title>...<⁄title>
<style>

<⁄style>
...
<⁄head>
<body>

<⁄body>
<⁄html>

Video demonstration style element, syntax

HTML5 style element, syntax Tutorial

min video details
00:07 adding the style element page
00:16 the style element has:

- a start tag: <style>
- an end tag: <⁄style>
both required!
style intro style optional style browser display style parents - CSS rules style ELEMENT vs style ATTRIBUTE style media attributestyle type attributestyle scoped attributestyle title attribute