Posts

Showing posts from December, 2019

CSS - SYNTAX Page-2

CSS SYNTAX CSS BASICS TO ADVANCE TUTORIALS CSS SYNTAX CSS rules have two main parts, a selector and declarations h1{ font-size: 1.5em; text-align: center; } Syntax Explained: In above syntax h1 is selector, font-size: is property, 1.5em is value. Again text-align: is property, center is value. Combination of property and value is called as declaration . Here we are styling h1 header text as it must be 1.5em in size and display in center. A small example using above syntax: Example < !DOCTYPE html > < html lang =" en " > < head >     < style >          h1 {             font-size: 1.5em;             text-align: center;         }     < / style > < / head > < body > ...

HTML - SYNTAX Page-2

HTML - SYNTAX HTML BASICS TO ADVANCE TUTORIALS HTML - SYNTAX Here we will learn what are the new things in HTML. <!DOCTYPE html> This is the first line of code in HTML and it is not case sensitive. We will learn what is case sensitive later. Character Encoding In HTML Character Encoding will be like <meta charset="UTF-8"> All are case insensitive. Attributes Attributes have a name and a value. We can use attributes as globally or specifically for a single element global attributes can use on any element in the body. Syntax for attribute is as follows. <body id="something"> Here ' id ' is attribute and ' something ' is value of the attribute. Tags Some new tags are introduced in HTML for design a better structure. They are like header footer aside article section nav dialog figure In previous versions of html we need to specify type in script and link as follows <script type=...