HTML Syntaxes
HTML Syntaxes
=========================
<h1 style="background-color : red;">Hello</h1> (or)
<h1 style="background: #ccc; color: #000; ">Welcome </h1>
comments
=========
<!-- //comments// -->
border
=======
border : solid black 1px;
ex:- <h1 style="background: #ccc; color:#000;border : solidblack 1px;"> welcome to
office</h1>
style
=======
1. inline
-----------
ex :- <h2 style="background:#ccc; color:#000;border: solid black 1px;"> Welcome To
Fresco Play </h2>
2. Internal
-----------
ex:- <head>
<style>
h1 {color: green; font-size: 10px; }
h2 {background:#ccc; color:#000; border: solid black 1px;}
p {color: black;}
</style>
</head>
<body>
<h2> Welcome to Fresco Play </h2>
</body
3. EXternal
------------
ex:- <head>
LINK REL=stylesheet HREF="style.css" TYPE="text/css" MEDIA=screen
</head>
span
======
span tag is used to use separate something in text or paragraph by highlighting
it . It uses inline style
ex:- <h2>hello world <span style="color:red;">hello world </span> hello world</h2>
backgrounds
===========
1. Background image
-------------------
background-image:url("https://img.freepik.com/free-photo/abstract-grunge-
decorative-relief-navy-blue-stucco-wall-texture-wide-angle-rough-colored-
background_1258-28311.jpg?w=2000");
}
(or)
background-image:url(
capitalize
===========
text-transform: capitalize;
text indent
=============
text-indent: 40px;
text-indent: 15%;
word-spacing
=============
word-spacing: 3px;
word-spacing: 0.3em;