for paragraphs,
HTML Shortcuts
AI-enhanced title and description
Jamil AlaghaBSWE 4327 - Programming Web HTML Shortcuts Tags
Text<p> text </p> Block element<h1>text.. </h1> …. <h6>text… </h6> Block elements<b> to be bold </b> Inline elements Bold text<i> to be italic </i> Italic text<u> to be underlined </u> Underlined text<strong> </strong> Strong (bold) text<em> </em> Emphasized (italic) text<s> </s> Through line text<mark> </mark> Highlighted text<sup> above text </sup> Inline elements<sub> under text </sub><br /> Make new line<hr /> Make new line and draw line<pre> </pre> Keep format as it ( keep white spaces)<blockquote>text </blockquote> Block element In “ quote “ in new line<q> text </q> Inline element In “quote ” in the same lineText <cite> author </cite> inline element To add reference at the end of text<dfn> name </dfn> definition inline element Includes name of definition<abbr title="Professor" > Prof </abbr> Block element Lists <li> item list </li> Block element <ol type="1", > </ol> Block element type="1", “A”, “a”, “I”, “I” <ul type="disc"> </ul> Block element type="disc", “circle", "square" <dl> </dl> Block element <dt> definition text </dt> Block element <dd> definition </dd> Block element Page Organizing <main> </main> Main content, one main in page <header> </header> introduction to a page <footer> </footer> end of a page <section> </section> To divide long web document Layout <article> </article> self-contained works that could stand Design alone (can have multiple sections) <aside> </aside> content that is separate from content <nav> </nav> provides more semantic meaning for unordered list. Links <a href="link" > text </a> Inline href="http://www.empireonline.com" href="index.html" href="../../index.html" <a href=”mailto:jon@d .org” >text Inline mailto:email address </a>
1Dr. Jamil AlaghaBSWE 4327 - Programming Web HTML Shortcuts Tags
2Dr. Jamil AlaghaBSWE 4327 - Programming Web HTML Shortcuts Tags
3 Dr. Jamil Alagha BSWE 4327 - Programming Web HTML Shortcuts Tags
University of Palestine