Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

HTML-CSS

HTML

What is HTML?

👉HTML stand for Hypertext Markup Language.
👉 It is a programming language used to determines the structure of web pages or documents.
👉 HTML elements tell the brower how to display the content.

What is HyperText ?

👉 Hypertext is text which contains links to other texts.

What is Markup language in HTML ?

Markup tells a web browser how to display text, images and other forms of multimedia on a web page.

Structure of the HTML tampalte

WhatsApp Image 2023-02-28 at 07 17 52

What is Tags ?

HTML tags are identifier which is used to create HTML elements.It's a way to define & create interactive elements.

types--->

  1. Semantic Tags
  2. Non Semantic Tags

What Are Semantic HTML Tags?

Semantic HTML tags are tags that define the meaning of the content they contain.

For example, tags like <header>, <article>, and <footer> are semantic HTML tags. They clearly indicate the role of the content they contain.

HTML Elements

An HTML element is the collection of start and end tags with the content inserted in between them.
The HTML element consist of 3 parts
i) Opening tag
ii)Closing tag
iii)Content

Attribute in html

It's a way to pass an additional information to the elements for performing a specific task
⚫src
⚫style
⚫alt
⚫title
⚫name

Difference between <div> and <span> Tag in HTML

Both the tags (<div> and <span>) are used to represent the part of the webpage, <div> tag is used a as block part of the webpage and <span> tag is used as a inline part of the webpage like below:

What are the different kinds of Doctypes available?

  1. Strict Doctype
  2. Transitional Doctype
  3. Frameset Doctype

HTML <svg> Tag

The <svg> tag is used as a container for SVG graphics.

SVG (Scalable Vector Graphics) is a language for two-dimensional graphics based on XML with support for animation and interactivity. To draw images, it uses simple geometrical figures (circle, lines, polygon, etc.)

Table

![image](https://user-images.githubusercontent.com/95286756/221424802-e0430233-7d7f-4a57-8f57-f0e96313f22c.png)

Forms

![table](https://user-images.githubusercontent.com/95286756/221425592-aab55a76-b872-4ffd-9869-78298e23fa37.jpg)

● What is in Html5

● What is difference between div and span in Html

● What is semantic tags and non semantic tags in Html

● What is difference between html and html5

● What is Iframe tag in Html5

● What are the formatting tags in html

● What is difference and in html

● What is view port attribute in html

● What is block level element and inline element in html

● What is difference between Html and Html5


CSS

What is CSS?

CSS stands for Cascading Style Sheets. It is the language for describing the presentation of Web pages, including colours, layout, and fonts, thus making our web pages presentable to the users.

CSS describes how HTML elements should be displayed.

Way of using CSS

CSS can be added to HTML documents in 3 ways:

Inline - by using the style attribute inside HTML elements
Internal - by using a <style> element in the section
External - by using a element to link to an external CSS file

anatomy of css

![image](https://user-images.githubusercontent.com/95286756/216906246-c95b93c2-2ec9-4b6d-ad7c-c52b3cb66f37.png)

What is the difference between a class and an ID?

The only difference between them is that “id” is unique in a page and can only apply to at most one element, while “class” selector can apply to multiple elements.

box-sizing: border-box

box-sizing: border-box is a CSS property that affects how an element's total width and height are calculated. By default, when you specify a width and height for an element in CSS, those values are applied to the element's content area only. The element's border, padding, and margins are added to the width and height values, resulting in a total width and height that can be larger than you intended.

With box-sizing: border-box, the element's specified width and height include the border and padding values, but not the margin. This means that the content area will be smaller than it would be with the default box-sizing value. The margin values are still added to the total width and height.