HTML

Tags, Elements and Attributes

HTML (and XML) is a format that generally follows the following conventions

Most often, the raw data is set off and specified by opening and closing tags; which comprise an element, in the following manner:

<tag> raw data </tag>

Some tags "self-close", e.g.
<br />
or even
<br>

Additionally, elements may contain "attributes," extra bits of information, e.g.
<tag attribute="extra bit"> raw data </tag>

Before CSS, HTML mixed "semantic" and "visual" tag types for elements, but for HTML5, the goal generally is to have HTML be semantic, and CSS be visual. E.g. — instead of the <i> for "italics" , <em> for "emphasis" is preferred (a semantic description of what the text is supposed to be like, not a visual descriptor.

Also, note that most elements we encounter will be "block" elements (wherein the text inside will be considered a self contained "block") — Note that this is how html sets "chunks" of text apart from one another, NOT through whitespace (e.g. tabs, spaces, etc.) That is, any space or spaces or newlines NOT set off by tags will be reduced to one space, always.

More here
https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started
https://htmldog.com/guides/html/beginner/tags/
And a good reference : https://www.w3schools.com/html/default.asp






Backlinks: FSU Courses:LIS5362:PreviousReadings Home:Miscellany:Staging-LIS5362