DEV Community

Cover image for Day 2: Learning HTML and CSS
Kamalesh AR
Kamalesh AR

Posted on

Day 2: Learning HTML and CSS

Today i learned about, How to create a portfolio using a HTML and CSS. In this session i learned about the a tag, href, margin and padding. And also blocklevel element, inline element and about the list.

Margin and Padding

Margin and padding are the CSS properties used for spacing in box model. Margin is used for space outside the box. Padding is used for space inside the box of the webpage.

  • a tag:
    a tag is a anchor element using to create a hyperlink in the webpage. It connects one page to another page links to different section within the same page.

  • href:
    href is stands for hypertext reference is an attribute used to specify the destination of a link. It is most commonly used within the anchor tag to create clickable hyperlinks.

What are inline element:

An inline element does not start on a new line.It only takes the width needed for its content.

What are block level element:

A block-level element starts on a new line and takes the full width available.

What is &copy:

&copy is a character entity used to display the copyright symbol.

Why it use:

HTML entities are used because:

  • Some symbols are reserved in HTML.
  • Ensures proper display in browsers.
  • Makes code more compatible.

Refered by:
google
w3schools-https://www.w3schools.com/tags/att_a_href.asp
Geeksforgeeks-https://www.geeksforgeeks.org/html/html-lists/

Top comments (0)