Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTML___CSS__Lesson_2.1.pdf

 HTML___CSS__Lesson_2.1.pdf

Ram Sapkota

October 24, 2018
Tweet

More Decks by Ram Sapkota

Other Decks in Programming

Transcript

  1. Semantic • Semantics within HTML is the practice of giving

    content on the page meaning and structure by using the proper element. • There are several benefits to using semantic elements, including enabling computers, screen readers, search engines, and other devices to adequately read and understand the content on a web page. • Additionally, semantic HTML is easier to manage and work with, as it shows clearly what each piece of content is about.
  2. Divisions and Spans • Divisions, or <div>s, and <span>s are

    HTML elements that act as containers solely for styling purposes. • Both <div>s and <span>s, however, are extremely valuable when building a website. • We’ll commonly see <div>s and <span>s with class or id attributes for styling purposes. • Div tag is a block level tag. • Span is an inline element and used to group inline elements. • Div and Span Both Group elements.
  3. • HTML comments start with <!-- and end with -->.

    • CSS comments start with /* and end with */. Comments in HTML & CSS
  4. • Headings • Paragraphs • Bold Text with Strong •

    Italicize Text with Emphasis Using Text-Based Elements
  5. Linking to an Email Address • mailto: • subject= •

    body= • All these are used in a attribute of
  6. Opening Links Links are opened with target attribute. • _self

    • _blank • You can link to other section of HTML Page also.