Professional Documents
Culture Documents
HTML Notes
HTML Notes
1. Private code - In private code one employee of the company can edit the code.
2. Open source- IN open source code anyone can change the code because it is public.
GitHub
Github is a code hosting program where we can can store our code.
Types of repositories - 1. Public - Here code can be accessed by anyone(Open source company)
HTML
<html> </html>
Structure in html
1.Head
2.Body
Syntax in Html
<html>
<head>
<title> </title>
</head>
<body>
</body>
</html>
HTML Tags
<P> </p>
<img/>
Heading Tag : HTML Heading tag is used to define the headings of a page.There are 6 heading
elements- h1, h2,h3, h4,h5,h6; h1 is highest level and h6 is the least.
Image tag
Syntax-<img src=””alt=””/>
alt is the alternative text which is shown in case where image is not loaded due to any
circumstances.
CSS
<html>
<head>
</head>
</body>
</html>
CSS Selectors
1.id
Syntax
<p id=”name”>My name is … </p>
To access id in css file, we have to use # (hash) before the id name.
In css -
#name{
color: red;
}
2. class
Syntax -
<p id=”age”>My age is … </p>
To access class in css file, we have to use . (dot) before the class name.
In css -
.age {
color: yellow;
}