DEV Community

Cover image for Learning HTML and CSS
Vigneshwaran V
Vigneshwaran V

Posted on

Learning HTML and CSS

Today i learned something about HTML and CSS to create portfolio using HTML and CSS, so today i learned lot of tags and styles, like header, section, footer, nav, a, h1, h2, p, ul, and i have learned some styles like padding, margin, color, background-color, text-align, text-decoration, width and border-radius.

Margin and Padding

Margin and Padding are CSS properties used for spacing in Box Model.
Margin is used to provide space outside the border of the box, and padding is used to provide space in between border and content of the box.

Semantic tags

In HTML some elements that are clearly describe the their meaning to both the browser and developer. it specify what kind of content they hold inside it. today i learned some semantic tags like header, nav, section, and footer.

a tag

a tag is known as anchor element which is used to create a hyperlink that connect one page to another or jump to specific sections in the same page.
*hyperlink * is a HTML links you can click on a link and jump to another document.

href

href stands for hypertext reference is an attribute used to specify the destination of a link, without this attribute, an element cannot function as a clickable hyperlink.

Inline Elements

An inline elements are those who takes only necessary space, it takes only width needed for their content, it doesn't take 100% width, so it doesn't start from new line.

Block Level Elements

Block level elements are the elements that occupy the full width of their parent container and always start on a new line.

What is &copy:

&copy is called an HTML Entity, HTML entities are special codes used to display symbols or reserved characters in webpages.

Top comments (1)

Collapse
 
karthick_k_983555db6df3 profile image
Karthick (k)

Well done!