0% found this document useful (0 votes)
10 views7 pages

HTML CheatSheet Very Nice Book

Very nice book

Uploaded by

wajahat Mazhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

HTML CheatSheet Very Nice Book

Very nice book

Uploaded by

wajahat Mazhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
Chestsheets / Learn HTML [eode|cademy Elements and Structure HTML HTML (Hypertext Markup Languagel is used to give content to a web page and instructs web browsers on how to structure that content. Element Content The content of an HTML element isthe information between the opening and closing tags of an element. h1>Codecademy <1i> List Item Element The list item element create list items inside: fe Ordered ists cols Prose fe Unordered lists eats Cases
    Ordered List Element The
      ordered list element creates a lst of tems in sequential order, Each list item appears numbered by default cn cet
      Div Element The
      element is used as a container that divides ‘an HTML document into sections and is short for “division”. Line Break Element The
      line break element will create a fine break in text and is especially useful where a division of text is required, like in a postal address. The line break element requires only an opening tag and must not have @ closing tag Image Element HTML image elements embed images in documents, The sre_ attribute contains the image URL and is mandatory. is an empty element meaning it should net have a closing tag.

      -

      Heading Elements HTML can use six different levels of heading elements. The heading elements are ordered from the highest level te 1¢ lowest level ss

      Paragraph Element The

      paragraph element contains and displays a block of text Unique ID Attributes In HTML, specific and unique i¢ attributes can be assigned to different elements in order to differentiate between them. When needed, the id value can be called upon by CSS and JavaScript to manipulate, format, and perform specific instructions on that element and that element only. Valid sa attributes should begin with a letter and should only contain letters (2-2 ), digits (¢-9 ), hyphens ( - underscores (_}, and periods ( . HTML Attributes HIML attributes are values added to the opening tag of ‘an element to configure the element or change the element's default behavior. Inthe provided example, we are giving the

      (paragraph) element a unique identifier using the ig attribute and changing the color of the dofault text using the styte attribute.