HTML and CSS

HTML and CSS

HTML stands for Hyper Text Markup Language. HTML has the same role as a skeleton in the human body. The skeleton gives structure, shape and base to the human body. HTML is used to create the structure and layout of any website. We can decide the order of the elements by HTML. HTML is a basic building block of the website. There are two types of elements in HTML, one is block level element and another one is an inline element. Block level element takes all the space of those rows but inline element takes only that space which is required by the element. HTML has different tags. A paragraph tag is used to write a paragraph and is a block-level element. A heading tag is used to write the headings and is also a block-level element. A Div tag is used to write the text and is a block-level element. A span tag is also used to write the text and is an inline element. Image, Video and Audio tags are used to embed the images, videos and audio in the websites. We can improve the accessibility of the website to disabled persons using HTML. We can improve the search engine optimisation of the websites with HTML. Search Engine Optimisation or SEO means to improve the rank of the website in the search engines. This can be done using the metatags and the keywords. HTML is a very versatile language. this can be used very well with CSS and JavaScript.

CSS stands for Cascading Style Sheets. As indicated by the name CSS is used to style websites. we style the structure written in HTML using CSS. CSS has the same role as the skin and clothes in the human body. The skin and clothes make the human body beautiful as CSS makes websites beautiful. CSS has much functionality which can be applied to the HTML code. margin is a space between and outside the two elements. padding the space inside the border of the element. the margin and the padding can be given using CSS. we can change the colour of the background and text by CSS. CSS has a concept of class and id. we can give a different style to different elements using the classes and the ids. the class can be used more than one time but ids should be unique. we can also give the same style to different elements using the classes. as classes can be used more than one time CSS has the feature of reusability. CSS can be used in making websites and emails which are more beautiful than text emails and used in many marketing campaigns. CSS is a very versatile language. there is a separation of concern as the HTML and the CSS code can be written separately.

Did you find this article valuable?

Support Rishabh Chaturvedi by becoming a sponsor. Any amount is appreciated!