HTML CSS Notes
HTML CSS Notes
Local server on our machine, with this extension a Local server will be launched
and we can easily validate our HTML pages.
Create a Project in VS :
Click on ‘Explorer’ section / Click on ‘File’ which is on top -> click on
“Open Folder”-> Choose the Project location that where it has to store / create a
New Folder and choose that folder to store the Project -> click on ‘Select Folder’
(Now we can see that folder is opened on our VS Code)
(or)
Select Folder -> type “cmd” -> In Command Prompt, type “code .”
(Now we can see that folder is opened on our VS Code)
=> As soon as you enter ‘exclamation (!)’ the intelligence will show you the two
different
options, you have to make sure that you are using the first option here. As soon
as you are
taking first option the vs code will insert this dummy code for you.
As soon as you click on Live server /go Live option, your file will get open on the local
server
(i.e This live server have launched one local server on your machine )
With the help of Live server extension, we do not have to manually go and refresh the page. We just
have to save the changes on your vs code and the page is automatically refreshed.
(As we are running the Local server on our machine what will happen is as soon as we go and save this
file the local server will go and refresh the page.)
<div> (Div block)-> to divide the page into multiple sections. it will take the one section of our page
Block level elements -> <h1>..<h6> , <p>
The next element to this Block level element will display in next of that.
** Block level elements always starts with the new line and inline elements always starts with the
existing line.
Anchor tag defines a hyperlink. It has a required attribute href that defines the destination link.
Image tag -> used to insert images in the HTML documents.
without data-*
with data-*
Whenever we have to store any private data that is specific to the page or an application we can use
this data attribute.
Wherever we have to access any kind of a data in the javascript we can access these data attributes as
well.
https://www.w3schools.com/cssref/pr_class_float.php
This is one way of providing CSS, this is refered has ‘Inline Css’.
In Internal styling, In header section itself we can write down the CSS.
Class and Id is also Attribute
For class, we have to use dot operator.
-> can be used in both client-side(in web browsers) and server-side(with platforms
like
Apex(Salesforce), Node.js ).
=>
---
https://www.linkedin.com/feed/update/urn:li:activity:7256235695168487424/?updateEntityUrn=urn
%3Ali%3Afs_updateV2%3A%28urn%3Ali%3Aactivity%3A7256235695168487424%2CFEED_DETAIL
%2CEMPTY%2CDEFAULT%2Cfalse%29