DEV Community

SELVAKUMAR R
SELVAKUMAR R

Posted on

SECOND DAY JAVA FULLSTACK TRAINING

FRONT END :

HTML:

Full Form of HTML -> Hypertext markup language

Hypertext -> text which contains links to other texts

Markup Language -> It specifies the structure and formatting the document contents

HTML is the skeleton of the web pages.

HTML having the some major tags to communicate to web pages to present the contents.

Every html tag having opening and closing tags.

Ex:

- > opening tag
- > closing tag

Use .html extension to save file

Ex: Sample.html

sample html program :

<!DOCTYPE html>
<html>
<head>
<title> PAYILAGAM INSTITUTE </title>
</head>
<body>
<h1> I AM SELVAKUMAR </h1> 
</body>
</html>
Enter fullscreen mode Exit fullscreen mode

Output:

CSS:

CSS Full Form -> Cascading Style Sheets

It is used to styling the html content to display the content what's you like using css properties

Use .css extension to save file

Ex: Sample.css

TYPES OF CSS:

  1. INLINE CSS:

Using the style attribute in line of html tags

Ex:

<!DOCTYPE html>
<html>
<head>
<title> PAYILAGAM INSTITUTE </title>
</head>
<body>
<h1 style = "color : blue"> I AM SELVAKUMAR </h1> 
</body>
</html>
Enter fullscreen mode Exit fullscreen mode

Output:

  1. INTERNAL CSS:

In order to over come the inline abilities we using the internal style to perform the task in html file

Insert the <style> tag in head tag in html to use the css properties to the particular content in html file

EX:

<!DOCTYPE html>
<html>
<head>
<title> PAYILAGAM INSTITUTE </title>
<style>
h1{
   color: Red;
}
</style>
</head>
<body>
<h1 > I AM SELVAKUMAR </h1> 
</body>
</html>
Enter fullscreen mode Exit fullscreen mode

OUTPUT:

  1. EXTERNAL CSS:

We using the link tag to connect the css file to html file

<link rel="stylesheet" type="text/css" href="style.css" />
Enter fullscreen mode Exit fullscreen mode

Top comments (0)