


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The documents contains html notes
Typology: Summaries
1 / 4
This page cannot be seen from the preview
Don't miss anything!



The declaration defines that this document is an HTML5 document The element is the root element of an HTML page The element contains meta information about the HTML page The element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab) The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. The <h1> element defines a large heading usually <h1> to <h6> The <p> element defines a paragraph What is an HTML Element? An HTML element is defined by a start tag, some content, and an end tag: <tagname> Content goes here... </tagname> The HTML element is everything from the start tag to the end tag: <h1>My First Heading</h1> <p>My first paragraph.</p>
HTML Attributes All HTML elements can have attributes Attributes provide additional information about elements Attributes are always specified in the start tag Attributes usually come in name/value pairs like: name="value"
HTML links are defined with the tag eg. This is a link The link's destination is specified in the href attribute. Attributes are used to provide additional information about HTML elements. You will learn more about attributes in a later chapter. HTML images are defined with the tag eg. The source file (src), alternative text (alt), width, and height are provided as attributes:
HTML Horizontal Rules The tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule. The element is used to separate content (or define a change) in an HTML page: Example This is heading 1
This is some text.
This is heading 2
This is some other text.
The tag is an empty tag, which means that it has no end tag. HTML Line Breaks The HTML element defines a line break. Use if you want a line break (a new line) without starting a new paragraph: Example
This isa paragraphwith line breaks.
Uppercase Letters Ordered List
Apple Banana Cherry Date