Posts

Showing posts from August, 2021

Css basics

Image
                        Cascading Style Sheet- Basics                Cascading style sheet  commonly known as CSS . It is used for  styling the web pages .   CSS SELECTORS :                                  A  CSS Selector selects the Html element  you want to style .   most commonly used css selectors are:              simple selectors(it depends upon the class and id ) attribute selectors(it depends upon the tag in html) css can be added in three ways : external css(using the link to add the css page) internal css(In the head tag you can just open the style element add the styles and close the style element) inline  css (Within in the body you can add the style tag) Syntax :               ...

SEMANTIC TAGS IN HTML

Image
                        SEMANTIC TAGS   The word  Semantics  refers to "meaning" of the specified code . It is used to describe what is the role or purpose of the Html element have rather than what does it looks like . so semantic tag creates meaning to the content    there are 100s of semantic tags in Html . the important tags are listed in the below diagram. 1. <header>               It defines the topic or heading of the page at the top 2. <nav>          the nav element is used for navigation . we can navigate to other pages using the links . the main navigation is present at the top . 3. <main>                       The  main element contains the body of the page 4. <aside>       the aside element  is mainly used for sharing ou...

FUNCTION AND CONDITIONS IN JAVASCRIPT

FUNCTIONS A Function is a set of instructions or block of codes  executed when it is called. There are  two types of functions:                   Built in Functions User Defined Functions       Build in Functions:                                          There are lot of functions already built in within the javascript.   javascript comes along with all these built-in functions. Examples:                     console.log()                 document.queryselector()                 parseInt()                 parsefloat()                 math.sign()           ...

DATA TYPES IN JAVASCRIPT

                                       DATA TYPES Primitive Datatypes: String : anything which is enclosed in double quotes or single quotes is called a string.                             example: const name ="preetha"; Number :  there is only one type of number which is a number .it may be with or without decimals.                   example: const  books = 10; Boolean: it has only two values .  true  or  false .            example:  const issleeping = True; Undefined: if anyone creates a variable and don't set anything to it then it is called undefined             example : const  exam  Null : it contains a value of nothing.     ...