Posts

Showing posts from March, 2023

2: CSS

Image
CSS This is a comment in CSS:  /**/ You can use CSS in three ways: Inline CSS Internal CSS External CSS Inline CSS:      You have already studied Inline CSS in HTML blog, ie all the style used within the line of HTML code is Inline CSS. Internal CSS:     Internal CSS is styling the webpage, when you write the code within the head of the document and it will apply automatically to the whole webpage. Go in  < head ></ head >  tag and add a tag  < style ></ style >  and within it whatever property you give, will be applied to the whole page. Like if you want to make the whole background black , you will use  body { background-color : black ; }  within  < head ></ head >  tag.  If you want to make all paragraphs white, use  p { color : white ;}  within  < head ></ head >  tag. a External CSS:     In External CSS, you use an entirely diff...

1: Important terms of HTML and there functions

Image
 First, add an extension in VS code Live Server . Then Open settings , from the side panel choose extensions , choose live server config , and now change your default browser to chrome. Now make a new file in VS code ===>  index.html   Important terms: There are a few important terms of  HTML, these are: 1:     <!-- -->   This is a comment in HTML. Everything within it will not be executed. Example:  <!--This is a comment--> 2:   <! DOCTYPE html >  This is the starting of an HTML code. 3:    < html ></ html >  Everything is written between this in an HTML file. 4:   < head ></ head >  Information above the web page is written between this. 5:    < title ></ title >  This when written between head, give title to tab in the browser. Example: code: <! DOCTYPE html > < html >     < head >         ...